Package org.apache.camel.processor
Class DefaultProcessorFactory
- java.lang.Object
-
- org.apache.camel.processor.DefaultProcessorFactory
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.camel.spi.BootstrapCloseable
,org.apache.camel.spi.ProcessorFactory
@JdkService("processor-factory") public class DefaultProcessorFactory extends Object implements org.apache.camel.spi.ProcessorFactory, org.apache.camel.spi.BootstrapCloseable
DefaultProcessorFactory
that supports using 3rd party Camel components to implement the EIPProcessor
. The component should use theFactoryFinder
SPI 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 theProcessorFactory
the Camel component implement, which gets called for creating theProcessor
s 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 String
RESOURCE_PATH
-
Constructor Summary
Constructors Constructor Description DefaultProcessorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.apache.camel.Processor
createChildProcessor(org.apache.camel.Route route, org.apache.camel.NamedNode definition, boolean mandatory)
org.apache.camel.Processor
createProcessor(org.apache.camel.CamelContext camelContext, String definitionName, Object[] args)
org.apache.camel.Processor
createProcessor(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
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
createChildProcessor
public org.apache.camel.Processor createChildProcessor(org.apache.camel.Route route, org.apache.camel.NamedNode definition, boolean mandatory) throws Exception
- Specified by:
createChildProcessor
in 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:
createProcessor
in interfaceorg.apache.camel.spi.ProcessorFactory
- Throws:
Exception
-
-