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 Details

  • Constructor Details

    • DefaultProcessorFactory

      public DefaultProcessorFactory()
  • Method Details

    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      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 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