Uses of Class
org.springframework.context.ApplicationEvent
Package
Description
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.
Support classes for application events, like standard context events.
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
Provides a "simple" message broker implementation along with an abstract base
class and other supporting types such as a registry for subscriptions.
Support for handling messages to "user" destinations (i.e.
This package contains the Spring TestContext Framework which
provides annotation-driven unit and integration testing support that is
agnostic of the actual testing framework in use.
Test event support classes for the Spring TestContext Framework.
Spring's support for listening to transaction events.
Support classes for reactive transaction management.
Classes supporting the
org.springframework.web.context
package,
such as WebApplicationContext implementations and various utility classes.WebSocket integration for Spring's messaging module.
-
Uses of ApplicationEvent in org.springframework.context
Modifier and TypeInterfaceDescriptioninterface
ApplicationListener<E extends ApplicationEvent>
Interface to be implemented by application event listeners.Modifier and TypeMethodDescriptiondefault void
ApplicationEventPublisher.publishEvent
(ApplicationEvent event) Notify all matching listeners registered with this application of an application event. -
Uses of ApplicationEvent in org.springframework.context.event
Modifier and TypeClassDescriptionclass
Base class for events raised for anApplicationContext
.class
Event raised when anApplicationContext
gets closed.class
Event raised when anApplicationContext
gets initialized or refreshed.class
Event raised when anApplicationContext
gets started.class
Event raised when anApplicationContext
gets stopped.Modifier and TypeMethodDescriptionprotected Collection<ApplicationListener<?>>
AbstractApplicationEventMulticaster.getApplicationListeners
(ApplicationEvent event, ResolvableType eventType) Return a Collection of ApplicationListeners matching the given event type.protected void
SimpleApplicationEventMulticaster.invokeListener
(ApplicationListener<?> listener, ApplicationEvent event) Invoke the given listener with the given event.void
ApplicationEventMulticaster.multicastEvent
(ApplicationEvent event) Multicast the given application event to appropriate listeners.void
ApplicationEventMulticaster.multicastEvent
(ApplicationEvent event, ResolvableType eventType) Multicast the given application event to appropriate listeners.void
SimpleApplicationEventMulticaster.multicastEvent
(ApplicationEvent event) void
SimpleApplicationEventMulticaster.multicastEvent
(ApplicationEvent event, ResolvableType eventType) void
ApplicationListenerMethodAdapter.onApplicationEvent
(ApplicationEvent event) void
GenericApplicationListenerAdapter.onApplicationEvent
(ApplicationEvent event) void
SourceFilteringListener.onApplicationEvent
(ApplicationEvent event) protected void
SourceFilteringListener.onApplicationEventInternal
(ApplicationEvent event) Actually process the event, after having filtered according to the desired event source already.void
ApplicationListenerMethodAdapter.processEvent
(ApplicationEvent event) Process the specifiedApplicationEvent
, checking if the condition matches and handling a non-null result, if any.protected Object[]
ApplicationListenerMethodAdapter.resolveArguments
(ApplicationEvent event) Resolve the method arguments to use for the specifiedApplicationEvent
.boolean
ApplicationListenerMethodAdapter.shouldHandle
(ApplicationEvent event) Determine whether the listener method would actually handle the given event, checking if the condition matches.Modifier and TypeMethodDescriptiondefault boolean
GenericApplicationListener.supportsEventType
(Class<? extends ApplicationEvent> eventType) OverridesSmartApplicationListener.supportsEventType(Class)
with delegation toGenericApplicationListener.supportsEventType(ResolvableType)
.boolean
SmartApplicationListener.supportsEventType
(Class<? extends ApplicationEvent> eventType) Determine whether this listener actually supports the given event type. -
Uses of ApplicationEvent in org.springframework.context.support
Modifier and TypeMethodDescriptionvoid
AbstractApplicationContext.publishEvent
(ApplicationEvent event) Publish the given event to all listeners. -
Uses of ApplicationEvent in org.springframework.messaging.simp.broker
Modifier and TypeClassDescriptionclass
Event raised when a broker's availability changes. -
Uses of ApplicationEvent in org.springframework.messaging.simp.user
Modifier and TypeMethodDescriptionvoid
MultiServerUserRegistry.onApplicationEvent
(ApplicationEvent event) Modifier and TypeMethodDescriptionboolean
MultiServerUserRegistry.supportsEventType
(Class<? extends ApplicationEvent> eventType) -
Uses of ApplicationEvent in org.springframework.test.context
Modifier and TypeMethodDescriptiondefault void
TestContext.publishEvent
(Function<TestContext, ? extends ApplicationEvent> eventFactory) Publish theApplicationEvent
created by the giveneventFactory
to the application context for this test context. -
Uses of ApplicationEvent in org.springframework.test.context.event
Modifier and TypeClassDescriptionclass
TestContextEvent
published by theEventPublishingTestExecutionListener
whenTestExecutionListener.afterTestClass(TestContext)
is invoked.class
TestContextEvent
published by theEventPublishingTestExecutionListener
whenTestExecutionListener.afterTestExecution(TestContext)
is invoked.class
TestContextEvent
published by theEventPublishingTestExecutionListener
whenTestExecutionListener.afterTestMethod(TestContext)
is invoked.class
TestContextEvent
published by theEventPublishingTestExecutionListener
whenTestExecutionListener.beforeTestClass(TestContext)
is invoked.class
TestContextEvent
published by theEventPublishingTestExecutionListener
whenTestExecutionListener.beforeTestExecution(TestContext)
is invoked.class
TestContextEvent
published by theEventPublishingTestExecutionListener
whenTestExecutionListener.beforeTestMethod(TestContext)
is invoked.class
TestContextEvent
published by theEventPublishingTestExecutionListener
whenTestExecutionListener.prepareTestInstance(TestContext)
is invoked.class
Base class for events published by theEventPublishingTestExecutionListener
.Modifier and TypeMethodDescriptionApplicationEvents.stream()
Stream all application events that were fired during test execution. -
Uses of ApplicationEvent in org.springframework.transaction.event
Modifier and TypeInterfaceDescriptioninterface
TransactionalApplicationListener<E extends ApplicationEvent>
AnApplicationListener
that is invoked according to aTransactionPhase
.class
TransactionalApplicationListener
adapter that delegates the processing of an event to a targetApplicationListener
instance.Modifier and TypeMethodDescriptionvoid
TransactionalApplicationListenerMethodAdapter.onApplicationEvent
(ApplicationEvent event) default void
TransactionalApplicationListener.SynchronizationCallback.postProcessEvent
(ApplicationEvent event, Throwable ex) Called after a transactional event listener invocation.default void
TransactionalApplicationListener.SynchronizationCallback.preProcessEvent
(ApplicationEvent event) Called before transactional event listener invocation. -
Uses of ApplicationEvent in org.springframework.transaction.reactive
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
TransactionalEventPublisher.publishEvent
(Function<TransactionContext, ApplicationEvent> eventCreationFunction) Publish an event created through the given function which maps the transaction source object (theTransactionContext
) to the event instance. -
Uses of ApplicationEvent in org.springframework.web.context.support
Modifier and TypeClassDescriptionclass
Event raised when a request is handled within an ApplicationContext.class
Servlet-specific subclass of RequestHandledEvent, adding servlet-specific context information. -
Uses of ApplicationEvent in org.springframework.web.socket.messaging
Modifier and TypeClassDescriptionclass
A base class for events for a message received from a WebSocket client and parsed into a higher-level sub-protocol (e.g.class
A connected event represents the server response to a client's connect request.class
Event raised when a new WebSocket client using a Simple Messaging Protocol (e.g.class
Event raised when the session of a WebSocket client using a Simple Messaging Protocol (e.g.class
Event raised when a new WebSocket client using a Simple Messaging Protocol (e.g.class
Event raised when a new WebSocket client using a Simple Messaging Protocol (e.g.Modifier and TypeMethodDescriptionvoid
DefaultSimpUserRegistry.onApplicationEvent
(ApplicationEvent event) Modifier and TypeMethodDescriptionboolean
DefaultSimpUserRegistry.supportsEventType
(Class<? extends ApplicationEvent> eventType)