org.apache.camel.impl
Class ConditionSupport

java.lang.Object
  extended by org.apache.camel.impl.ConditionSupport
All Implemented Interfaces:
Condition

public class ConditionSupport
extends Object
implements Condition

A support class for Condition implementations to use as base class.

Version:

Constructor Summary
ConditionSupport()
           
 
Method Summary
 boolean matchEvent(Exchange exchange, EventObject event)
          Does the condition match
 boolean matchProcess(Exchange exchange, Processor processor, ProcessorDefinition<?> definition)
          Does the condition match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionSupport

public ConditionSupport()
Method Detail

matchProcess

public boolean matchProcess(Exchange exchange,
                            Processor processor,
                            ProcessorDefinition<?> definition)
Description copied from interface: Condition
Does the condition match

Specified by:
matchProcess in interface Condition
Parameters:
exchange - the exchange
processor - the Processor
definition - the present location in the route where the Exchange is located at
Returns:
true to match, false otherwise

matchEvent

public boolean matchEvent(Exchange exchange,
                          EventObject event)
Description copied from interface: Condition
Does the condition match

Specified by:
matchEvent in interface Condition
Parameters:
exchange - the exchange
event - the event (instance of AbstractExchangeEvent
Returns:
true to match, false otherwise
See Also:
AbstractExchangeEvent


Apache CAMEL