Class 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.

    • Constructor Detail

      • DefaultProcessorFactory

        public DefaultProcessorFactory()
    • 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:
        createChildProcessor in interface org.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 interface org.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:
        createProcessor in interface org.apache.camel.spi.ProcessorFactory
        Throws:
        Exception