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 definition
s for example to
configure or change options. Its also possible to add new steps in the route by adding outputs to
definition
s.
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
definition
s.Modifier and Type | Method and Description |
---|---|
Processor |
createChildProcessor(RouteContext routeContext,
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(RouteContext routeContext,
NamedNode definition)
Creates the processor.
|
Processor createChildProcessor(RouteContext routeContext, NamedNode definition, boolean mandatory) throws Exception
routeContext
- 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(RouteContext routeContext, NamedNode definition) throws Exception
routeContext
- 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