public class TypedProcessorFactory<T extends ProcessorDefinition<T>> extends Object implements ProcessorFactory
Modifier | Constructor and Description |
---|---|
protected |
TypedProcessorFactory(Class<T> type) |
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.
|
protected Processor |
doCreateChildProcessor(RouteContext routeContext,
T definition,
boolean mandatory) |
Processor |
doCreateProcessor(RouteContext routeContext,
T definition) |
protected TypedProcessorFactory(Class<T> type)
public Processor createChildProcessor(RouteContext routeContext, ProcessorDefinition<?> definition, boolean mandatory) throws Exception
ProcessorFactory
createChildProcessor
in interface ProcessorFactory
routeContext
- the route contextdefinition
- the definition which represents the processormandatory
- whether or not the child is mandatoryException
- can be thrown if error creating the processorpublic Processor createProcessor(RouteContext routeContext, ProcessorDefinition<?> definition) throws Exception
ProcessorFactory
createProcessor
in interface ProcessorFactory
routeContext
- the route contextdefinition
- the definition which represents the processorException
- can be thrown if error creating the processorprotected Processor doCreateChildProcessor(RouteContext routeContext, T definition, boolean mandatory) throws Exception
Exception
public Processor doCreateProcessor(RouteContext routeContext, T definition) throws Exception
Exception
Apache Camel