Package org.apache.camel.component.event
Class CamelEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- org.apache.camel.component.event.CamelEvent
-
- All Implemented Interfaces:
Serializable
public class CamelEvent extends org.springframework.context.ApplicationEventRepresents a SpringApplicationEventwhich contains a CamelExchange- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description CamelEvent(EventEndpoint source, org.apache.camel.Exchange exchange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.ExchangegetExchange()Returns the message exchangeEventEndpointgetSource()-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
CamelEvent
public CamelEvent(EventEndpoint source, org.apache.camel.Exchange exchange)
-
-
Method Detail
-
getSource
public EventEndpoint getSource()
- Overrides:
getSourcein classEventObject
-
getExchange
public org.apache.camel.Exchange getExchange()
Returns the message exchange- Returns:
- the camel message exchange
-
-