Package org.opennms.features.amqp.common
Class DynamicallyTrackedProcessor
- java.lang.Object
-
- org.opennms.features.amqp.common.DynamicallyTrackedProcessor
-
- All Implemented Interfaces:
org.apache.camel.Processor
public class DynamicallyTrackedProcessor extends Object implements org.apache.camel.Processor
CamelProcessor
that delegates calls to an implementation that is dynamically tracked using aServiceTracker
. Processor implementations are expected to have the following property: name={$processorName} where ${processorName} is used to identify a specific instance of the processor.- Author:
- jwhite
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description DynamicallyTrackedProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
process(org.apache.camel.Exchange exchange)
void
setContext(org.osgi.framework.BundleContext context)
void
setProcessorName(String processorName)
-
-
-
Method Detail
-
process
public void process(org.apache.camel.Exchange exchange) throws Exception
- Specified by:
process
in interfaceorg.apache.camel.Processor
- Throws:
Exception
-
setContext
public void setContext(org.osgi.framework.BundleContext context)
-
setProcessorName
public void setProcessorName(String processorName)
-
destroy
public void destroy()
-
-