Package | Description |
---|---|
org.springframework.context |
This package builds on the beans package to add support for
message sources and for the Observer design pattern, and the
ability for application objects to obtain resources using a
consistent API.
|
Modifier and Type | Method and Description |
---|---|
static <T> ApplicationListener<PayloadApplicationEvent<T>> |
ApplicationListener.forPayload(Consumer<T> consumer)
Create a new
ApplicationListener for the given payload consumer. |