public interface ProcessorFactory
Processor based on the definition.
This allows you to implement a custom factory in which you can control the creation of the processors. It also allows
you to manipulate the definitions for example to configure or
change options. Its also possible to add new steps in the route by adding outputs to
definitions.
Important: By returning null from the create methods you fallback to let the default implementation
in Camel create the Processor. You want to do this if you only want to manipulate the
definitions.| Modifier and Type | Method and Description |
|---|---|
Processor |
createChildProcessor(Route route,
NamedNode definition,
boolean mandatory)
Creates the child processor.
|
Processor |
createProcessor(CamelContext camelContext,
String definitionName,
Map<String,Object> args)
Creates a processor by the name of the definition.
|
Processor |
createProcessor(Route route,
NamedNode definition)
Creates the processor.
|
Processor createChildProcessor(Route route, NamedNode definition, boolean mandatory) throws Exception
route - the route contextdefinition - the definition which represents the processormandatory - whether or not the child is mandatoryException - can be thrown if error creating the processorProcessor createProcessor(Route route, NamedNode definition) throws Exception
route - the route contextdefinition - the definition which represents the processorException - can be thrown if error creating the processorProcessor createProcessor(CamelContext camelContext, String definitionName, Map<String,Object> args) throws Exception
camelContext - the camel contextdefinitionName - the name of the definition that represents the processorargs - arguments for creating the processor (name=vale pairs)Exception - can be thrown if error creating the processorApache Camel