public class ProcessorManagerImpl extends Object implements ProcessorManager, org.apache.sling.api.resource.observation.ResourceChangeListener, org.apache.sling.api.resource.observation.ExternalResourceChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
ProcessorManagerImpl.ConfigEntry |
protected static class |
ProcessorManagerImpl.ProcessorConfiguratorComparator |
Modifier and Type | Field and Description |
---|---|
protected static String |
MIME_TYPE_HTML |
Constructor and Description |
---|
ProcessorManagerImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.framework.BundleContext ctx)
Activate this component.
|
protected void |
addProcessor(String key,
String configPath,
ProcessorConfigurationImpl config)
adds a processor configuration
|
protected void |
deactivate(org.osgi.service.component.ComponentContext ctx)
Deactivate this component.
|
Processor |
getProcessor(ProcessorConfiguration configuration,
ProcessingContext context)
Return a pipeline for a pipeline configuration.
|
List<ProcessorConfiguration> |
getProcessorConfigurations()
Return the list of currently available processor configurations.
|
void |
onChange(List<org.apache.sling.api.resource.observation.ResourceChange> changes) |
protected static final String MIME_TYPE_HTML
protected void activate(org.osgi.framework.BundleContext ctx) throws org.apache.sling.api.resource.LoginException, org.osgi.framework.InvalidSyntaxException
ctx
- org.apache.sling.api.resource.LoginException
org.osgi.framework.InvalidSyntaxException
protected void deactivate(org.osgi.service.component.ComponentContext ctx)
ctx
- public void onChange(List<org.apache.sling.api.resource.observation.ResourceChange> changes)
onChange
in interface org.apache.sling.api.resource.observation.ResourceChangeListener
protected void addProcessor(String key, String configPath, ProcessorConfigurationImpl config)
public Processor getProcessor(ProcessorConfiguration configuration, ProcessingContext context)
ProcessorManager
getProcessor
in interface ProcessorManager
ProcessorManager.getProcessor(org.apache.sling.rewriter.ProcessorConfiguration, org.apache.sling.rewriter.ProcessingContext)
public List<ProcessorConfiguration> getProcessorConfigurations()
ProcessorManager
getProcessorConfigurations
in interface ProcessorManager
ProcessorManager.getProcessorConfigurations()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.