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
Default
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
Processors for the EIP.
-
Field Summary
FieldsFields inherited from interface org.apache.camel.spi.ProcessorFactory
FACTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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, Object[] args) org.apache.camel.ProcessorcreateProcessor(org.apache.camel.Route route, org.apache.camel.NamedNode definition)
-
Field Details
-
RESOURCE_PATH
- See Also:
-
-
Constructor Details
-
DefaultProcessorFactory
public DefaultProcessorFactory()
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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:
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
-
createProcessor
public org.apache.camel.Processor createProcessor(org.apache.camel.CamelContext camelContext, String definitionName, Object[] args) throws Exception - Specified by:
createProcessorin interfaceorg.apache.camel.spi.ProcessorFactory- Throws:
Exception
-