public class DefaultProcessorFactory extends Object implements org.apache.camel.spi.ProcessorFactory
ProcessorFactory
that supports using 3rd party Camel components to implement the EIP Processor
.
The component should use the FactoryFinder
SPI to specify a file with the name of the EIP model in the
directory of RESOURCE_PATH
. The file should contain a property with key class that refers
to the name of the ProcessorFactory
the Camel component implement, which gets called for creating
the Processor
s for the EIP.
The Hystrix EIP is such an example where org.apache.camel.model.HystrixDefinition
is implemented
in the camel-hystrix component.Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_PATH |
Constructor and Description |
---|
DefaultProcessorFactory() |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Processor |
createChildProcessor(org.apache.camel.spi.RouteContext routeContext,
org.apache.camel.NamedNode definition,
boolean mandatory) |
org.apache.camel.Processor |
createProcessor(org.apache.camel.CamelContext camelContext,
String definitionName,
Map<String,Object> args) |
org.apache.camel.Processor |
createProcessor(org.apache.camel.spi.RouteContext routeContext,
org.apache.camel.NamedNode definition) |
public static final String RESOURCE_PATH
public org.apache.camel.Processor createChildProcessor(org.apache.camel.spi.RouteContext routeContext, org.apache.camel.NamedNode definition, boolean mandatory) throws Exception
createChildProcessor
in interface org.apache.camel.spi.ProcessorFactory
Exception
public org.apache.camel.Processor createProcessor(org.apache.camel.spi.RouteContext routeContext, org.apache.camel.NamedNode definition) throws Exception
createProcessor
in interface org.apache.camel.spi.ProcessorFactory
Exception
Apache Camel