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.
|
org.springframework.transaction.event |
Spring's support for listening to transaction events.
|
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. |
Modifier and Type | Method and Description |
---|---|
static <T> TransactionalApplicationListener<PayloadApplicationEvent<T>> |
TransactionalApplicationListener.forPayload(Consumer<T> consumer)
Create a new
TransactionalApplicationListener for the given payload consumer,
to be applied in the default phase TransactionPhase.AFTER_COMMIT . |
static <T> TransactionalApplicationListener<PayloadApplicationEvent<T>> |
TransactionalApplicationListener.forPayload(TransactionPhase phase,
Consumer<T> consumer)
Create a new
TransactionalApplicationListener for the given payload consumer. |