Class ProcessDefinition

  • All Implemented Interfaces:
    org.apache.camel.CamelContextAware, org.apache.camel.LineNumberAware, Block, org.apache.camel.NamedNode, org.apache.camel.spi.HasId, org.apache.camel.spi.IdAware

    @Metadata(label="eip,endpoint")
    public class ProcessDefinition
    extends NoOutputDefinition<ProcessDefinition>
    Calls a Camel processor
    • Constructor Detail

      • ProcessDefinition

        public ProcessDefinition()
      • ProcessDefinition

        public ProcessDefinition​(org.apache.camel.Processor processor)
    • Method Detail

      • getShortName

        public String getShortName()
      • getProcessor

        public org.apache.camel.Processor getProcessor()
      • getRef

        public String getRef()
      • setRef

        public void setRef​(String ref)
        Reference to the Processor to lookup in the registry to use. Can also be used for creating new beans by their class name by prefixing with #class, eg #class:com.foo.MyClassType. And it is also possible to refer to singleton beans by their type in the registry by prefixing with #type: syntax, eg #type:com.foo.MyClassType