org.apache.camel.impl
Class DefaultRouteNode

java.lang.Object
  extended by org.apache.camel.impl.DefaultRouteNode
All Implemented Interfaces:
RouteNode

public class DefaultRouteNode
extends Object
implements RouteNode

A default implementation of the RouteNode

Version:

Constructor Summary
DefaultRouteNode(ProcessorDefinition<?> processorDefinition, Expression expression)
           
DefaultRouteNode(ProcessorDefinition<?> processorDefinition, Processor processor)
           
 
Method Summary
 String getLabel(Exchange exchange)
          Gets a label about this node to be used for tracing or tooling etc.
 Processor getProcessor()
          Gets the actual processor this node represents.
 ProcessorDefinition<?> getProcessorDefinition()
          Gets the model definition that represents this node
 boolean isAbstract()
          Whether this node is abstract (no real processor under the cover).
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultRouteNode

public DefaultRouteNode(ProcessorDefinition<?> processorDefinition,
                        Processor processor)

DefaultRouteNode

public DefaultRouteNode(ProcessorDefinition<?> processorDefinition,
                        Expression expression)
Method Detail

getProcessor

public Processor getProcessor()
Description copied from interface: RouteNode
Gets the actual processor this node represents.

Specified by:
getProcessor in interface RouteNode
Returns:
the processor, can be null in special cases such as an intercepted node

getProcessorDefinition

public ProcessorDefinition<?> getProcessorDefinition()
Description copied from interface: RouteNode
Gets the model definition that represents this node

Specified by:
getProcessorDefinition in interface RouteNode
Returns:
the definition, is never null

getLabel

public String getLabel(Exchange exchange)
Description copied from interface: RouteNode
Gets a label about this node to be used for tracing or tooling etc.

Specified by:
getLabel in interface RouteNode
Parameters:
exchange - the current exchange
Returns:
a label for this node

isAbstract

public boolean isAbstract()
Description copied from interface: RouteNode
Whether this node is abstract (no real processor under the cover).

Some nodes that represent intermediate steps are abstract, for instance with onException, onCompletion or intercept

Specified by:
isAbstract in interface RouteNode
Returns:
whether this node is abstract or not

toString

public String toString()
Overrides:
toString in class Object


Apache CAMEL