T - the payload type of the eventpublic class PayloadApplicationEvent<T> extends ApplicationEvent implements org.springframework.core.ResolvableTypeProvider
ApplicationEvent that carries an arbitrary payload.
Mainly intended for internal use within the framework.
| Constructor and Description |
|---|
PayloadApplicationEvent(java.lang.Object source,
T payload)
Create a new PayloadApplicationEvent.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getPayload()
Return the payload of the event.
|
org.springframework.core.ResolvableType |
getResolvableType() |
getTimestamppublic PayloadApplicationEvent(java.lang.Object source,
T payload)
source - the object on which the event initially occurred (never null)payload - the payload object (never null)public org.springframework.core.ResolvableType getResolvableType()
getResolvableType in interface org.springframework.core.ResolvableTypeProviderpublic T getPayload()