org.apache.camel.component.event
Class CamelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.springframework.context.ApplicationEvent
          extended by org.apache.camel.component.event.CamelEvent
All Implemented Interfaces:
Serializable

public class CamelEvent
extends ApplicationEvent

Represents a Spring ApplicationEvent which contains a Camel Exchange

Version:
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CamelEvent(EventEndpoint source, org.apache.camel.Exchange exchange)
           
 
Method Summary
 org.apache.camel.Exchange getExchange()
          Returns the message exchange
 EventEndpoint getSource()
           
 
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CamelEvent

public CamelEvent(EventEndpoint source,
                  org.apache.camel.Exchange exchange)
Method Detail

getSource

public EventEndpoint getSource()
Overrides:
getSource in class EventObject

getExchange

public org.apache.camel.Exchange getExchange()
Returns the message exchange

Returns:
the camel message exchange


Apache Camel