public abstract class IntegrationEvent extends ApplicationEvent
ApplicationEvent
s generated by the framework.
Contains an optional cause field; a separate Exception event hierarchy
is not possible because of Java single inheritance (modules should make
all their events subclasses of 'xxxIntegrationEvent').Modifier and Type | Field and Description |
---|---|
protected Throwable |
cause |
source
Constructor and Description |
---|
IntegrationEvent(Object source) |
IntegrationEvent(Object source,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause() |
<T> T |
getSourceAsType()
Get the source as a specific type; the receiving variable must be declared with the
correct type.
|
String |
toString() |
getTimestamp
getSource
protected final Throwable cause
public IntegrationEvent(Object source)
public Throwable getCause()
public <T> T getSourceAsType()
T
- the type.public String toString()
toString
in class EventObject