public abstract class IntegrationEvent
extends org.springframework.context.ApplicationEvent
ApplicationEvents 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 java.lang.Throwable |
cause |
| Constructor and Description |
|---|
IntegrationEvent(java.lang.Object source) |
IntegrationEvent(java.lang.Object source,
java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getCause() |
<T> T |
getSourceAsType()
Get the source as a specific type; the receiving variable must be declared with the
correct type.
|
java.lang.String |
toString() |
public IntegrationEvent(java.lang.Object source)
public IntegrationEvent(java.lang.Object source,
@Nullable
java.lang.Throwable cause)
public java.lang.Throwable getCause()
public <T> T getSourceAsType()
T - the type.public java.lang.String toString()
toString in class java.util.EventObject