public interface Events
ApplicationEventPublisher
.Modifier and Type | Field and Description |
---|---|
static int |
HIGHEST_PLATFORM_PRECEDENCE
Defines the highest precedence for
Ordered or
Order listeners added by the platform. |
static int |
LOWEST_PLATFORM_PRECEDENCE
Defines the lowest precedence for
Ordered or
Order listeners added by the platform. |
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
void |
publish(org.springframework.context.ApplicationEvent event)
Notify all matching listeners registered with this application of an application event.
|
static final java.lang.String NAME
static final int HIGHEST_PLATFORM_PRECEDENCE
Ordered
or
Order
listeners added by the platform.static final int LOWEST_PLATFORM_PRECEDENCE
Ordered
or
Order
listeners added by the platform.void publish(org.springframework.context.ApplicationEvent event)
You can use PayloadApplicationEvent
to publish any object as an event.
event
- the event to publishRequestHandledEvent