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,
ProcessorDefinition<?> definition,
boolean mandatory)
Creates the child processor.
|
Processor |
createProcessor(RouteContext routeContext,
ProcessorDefinition<?> definition)
Creates the processor.
|
Processor createChildProcessor(RouteContext routeContext, ProcessorDefinition<?> 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, ProcessorDefinition<?> definition) throws Exception
routeContext
- the route contextdefinition
- the definition which represents the processorException
- can be thrown if error creating the processorApache Camel