Package org.apache.camel.impl.engine
Class DefaultProcessorFactory
- java.lang.Object
-
- org.apache.camel.impl.engine.DefaultProcessorFactory
-
- All Implemented Interfaces:
org.apache.camel.spi.ProcessorFactory
public class DefaultProcessorFactory extends Object implements org.apache.camel.spi.ProcessorFactory
DefaultProcessorFactorythat supports using 3rd party Camel components to implement the EIPProcessor. The component should use theFactoryFinderSPI to specify a file with the name of the EIP model in the directory ofRESOURCE_PATH. The file should contain a property with key class that refers to the name of theProcessorFactorythe Camel component implement, which gets called for creating theProcessors for the EIP. The Hystrix EIP is such an example where the circuit breaker EIP (CircuitBreakerDefinition) is implemented in the camel-hystrix component.
-
-
Field Summary
Fields Modifier and Type Field Description static StringRESOURCE_PATH
-
Constructor Summary
Constructors Constructor Description DefaultProcessorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.ProcessorcreateChildProcessor(org.apache.camel.Route route, org.apache.camel.NamedNode definition, boolean mandatory)org.apache.camel.ProcessorcreateProcessor(org.apache.camel.CamelContext camelContext, String definitionName, Map<String,Object> args)org.apache.camel.ProcessorcreateProcessor(org.apache.camel.Route route, org.apache.camel.NamedNode definition)
-
-
-
Field Detail
-
RESOURCE_PATH
public static final String RESOURCE_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
createChildProcessor
public org.apache.camel.Processor createChildProcessor(org.apache.camel.Route route, org.apache.camel.NamedNode definition, boolean mandatory) throws Exception- Specified by:
createChildProcessorin interfaceorg.apache.camel.spi.ProcessorFactory- Throws:
Exception
-
createProcessor
public org.apache.camel.Processor createProcessor(org.apache.camel.Route route, org.apache.camel.NamedNode definition) throws Exception- Specified by:
createProcessorin interfaceorg.apache.camel.spi.ProcessorFactory- Throws:
Exception
-
-