com.day.cq.rewriter.processor.impl
Class ProcessorManagerImpl

java.lang.Object
  extended by com.day.cq.rewriter.processor.impl.ProcessorManagerImpl
All Implemented Interfaces:
ProcessorManager, EventListener

public class ProcessorManagerImpl
extends Object
implements EventListener, ProcessorManager

This manager keeps track of configured processors.


Nested Class Summary
protected static class ProcessorManagerImpl.ProcessorConfiguratorComparator
           
 
Field Summary
static String CONFIG_PATH
           
 
Constructor Summary
ProcessorManagerImpl()
           
 
Method Summary
protected  void activate(org.osgi.service.component.ComponentContext ctx)
          Activate this component.
protected  void deactivate(org.osgi.service.component.ComponentContext ctx)
          Deactivate this component.
static
<ComponentType>
ComponentType
getComponent(org.osgi.framework.BundleContext bundleContext, List<org.osgi.framework.ServiceReference> refList, List<org.osgi.service.component.ComponentInstance> instanceList, Class<ComponentType> typeClass, String type)
          Lookup a factory 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 onEvent(EventIterator iter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_PATH

public static final String CONFIG_PATH
See Also:
Constant Field Values
Constructor Detail

ProcessorManagerImpl

public ProcessorManagerImpl()
Method Detail

activate

protected void activate(org.osgi.service.component.ComponentContext ctx)
                 throws RepositoryException
Activate this component.

Parameters:
ctx -
Throws:
RepositoryException

deactivate

protected void deactivate(org.osgi.service.component.ComponentContext ctx)
Deactivate this component.

Parameters:
ctx -

onEvent

public void onEvent(EventIterator iter)
Specified by:
onEvent in interface EventListener
See Also:
EventListener.onEvent(javax.jcr.observation.EventIterator)

getProcessor

public Processor getProcessor(ProcessorConfiguration configuration,
                              ProcessingContext context)
                       throws IOException
Description copied from interface: ProcessorManager
Return a pipeline for a pipeline configuration.

Specified by:
getProcessor in interface ProcessorManager
Throws:
IOException
See Also:
ProcessorManager.getProcessor(com.day.cq.rewriter.processor.ProcessorConfiguration, com.day.cq.rewriter.processor.ProcessingContext)

getProcessorConfigurations

public List<ProcessorConfiguration> getProcessorConfigurations()
Description copied from interface: ProcessorManager
Return the list of currently available processor configurations.

Specified by:
getProcessorConfigurations in interface ProcessorManager
Returns:
The list of processor configurations in the order to check.
See Also:
ProcessorManager.getProcessorConfigurations()

getComponent

public static <ComponentType> ComponentType getComponent(org.osgi.framework.BundleContext bundleContext,
                                                         List<org.osgi.framework.ServiceReference> refList,
                                                         List<org.osgi.service.component.ComponentInstance> instanceList,
                                                         Class<ComponentType> typeClass,
                                                         String type)
                                  throws IOException
Lookup a factory component.

Throws:
IOException


Copyright © 2008 Day Management AG. All Rights Reserved.