Uses of Interface
org.springframework.context.ApplicationListener
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.
Support package for declarative messaging configuration,
with Java configuration and XML schema support.
Support for handling messages to "user" destinations (i.e.
Annotation support for asynchronous method execution.
Scheduling convenience classes for the
java.util.concurrent
and jakarta.enterprise.concurrent
packages, allowing to set up a
ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring
context.Spring's support for annotation-based transaction demarcation.
Spring's support for listening to transaction events.
Support classes for serving static resources.
Support classes for serving static resources.
WebSocket integration for Spring's messaging module.
-
Uses of ApplicationListener in org.springframework.context
Modifier and TypeMethodDescriptionstatic <T> ApplicationListener<PayloadApplicationEvent<T>>
ApplicationListener.forPayload
(Consumer<T> consumer) Create a newApplicationListener
for the given payload consumer.Modifier and TypeMethodDescriptionvoid
ConfigurableApplicationContext.addApplicationListener
(ApplicationListener<?> listener) Add a new ApplicationListener that will be notified on context events such as context refresh and context shutdown.void
ConfigurableApplicationContext.removeApplicationListener
(ApplicationListener<?> listener) Remove the given ApplicationListener from this context's set of listeners, assuming it got registered viaConfigurableApplicationContext.addApplicationListener(org.springframework.context.ApplicationListener<?>)
before. -
Uses of ApplicationListener in org.springframework.context.event
Modifier and TypeInterfaceDescriptioninterface
Extended variant of the standardApplicationListener
interface, exposing further metadata such as the supported event and source type.interface
Extended variant of the standardApplicationListener
interface, exposing further metadata such as the supported event and source type.Modifier and TypeClassDescriptionclass
GenericApplicationListener
adapter that delegates the processing of an event to anEventListener
annotated method.class
GenericApplicationListener
adapter that determines supported event types through introspecting the generically declared type of the target listener.class
ApplicationListener
decorator that filters events from a specified event source, invoking its delegate listener for matchingApplicationEvent
objects only.Modifier and TypeMethodDescriptionDefaultEventListenerFactory.createApplicationListener
(String beanName, Class<?> type, Method method) EventListenerFactory.createApplicationListener
(String beanName, Class<?> type, Method method) Create anApplicationListener
for the specified method.Modifier and TypeMethodDescriptionprotected Collection<ApplicationListener<?>>
AbstractApplicationEventMulticaster.getApplicationListeners()
Return a Collection containing all ApplicationListeners.protected Collection<ApplicationListener<?>>
AbstractApplicationEventMulticaster.getApplicationListeners
(ApplicationEvent event, ResolvableType eventType) Return a Collection of ApplicationListeners matching the given event type.Modifier and TypeMethodDescriptionvoid
AbstractApplicationEventMulticaster.addApplicationListener
(ApplicationListener<?> listener) void
ApplicationEventMulticaster.addApplicationListener
(ApplicationListener<?> listener) Add a listener to be notified of all events.protected void
SimpleApplicationEventMulticaster.invokeListener
(ApplicationListener<?> listener, ApplicationEvent event) Invoke the given listener with the given event.void
AbstractApplicationEventMulticaster.removeApplicationListener
(ApplicationListener<?> listener) void
ApplicationEventMulticaster.removeApplicationListener
(ApplicationListener<?> listener) Remove a listener from the notification list.protected boolean
AbstractApplicationEventMulticaster.supportsEvent
(ApplicationListener<?> listener, ResolvableType eventType, Class<?> sourceType) Determine whether the given listener supports the given event.Modifier and TypeMethodDescriptionvoid
AbstractApplicationEventMulticaster.removeApplicationListeners
(Predicate<ApplicationListener<?>> predicate) void
ApplicationEventMulticaster.removeApplicationListeners
(Predicate<ApplicationListener<?>> predicate) Remove all matching listeners from the set of registeredApplicationListener
instances (which includes adapter classes such asApplicationListenerMethodAdapter
, e.g.ModifierConstructorDescriptionGenericApplicationListenerAdapter
(ApplicationListener<?> delegate) Create a new GenericApplicationListener for the given delegate.SourceFilteringListener
(Object source, ApplicationListener<?> delegate) Create a SourceFilteringListener for the given event source. -
Uses of ApplicationListener in org.springframework.context.support
Modifier and TypeMethodDescriptionAbstractApplicationContext.getApplicationListeners()
Return the list of statically specified ApplicationListeners.Modifier and TypeMethodDescriptionvoid
AbstractApplicationContext.addApplicationListener
(ApplicationListener<?> listener) void
AbstractApplicationContext.removeApplicationListener
(ApplicationListener<?> listener) -
Uses of ApplicationListener in org.springframework.jms.config
Modifier and TypeClassDescriptionclass
Creates the necessaryMessageListenerContainer
instances for the registered endpoints. -
Uses of ApplicationListener in org.springframework.messaging.simp.user
Modifier and TypeClassDescriptionclass
SimpUserRegistry
that looks up users in a "local" user registry as well as a set of "remote" user registries.class
MessageHandler
that handles user registry broadcasts from other application servers and periodically broadcasts the content of the local user registry. -
Uses of ApplicationListener in org.springframework.scheduling.annotation
Modifier and TypeClassDescriptionclass
Bean post-processor that registers methods annotated with@Scheduled
to be invoked by aTaskScheduler
according to the "fixedRate", "fixedDelay", or "cron" expression provided via the annotation. -
Uses of ApplicationListener in org.springframework.scheduling.concurrent
Modifier and TypeClassDescriptionclass
Base class for setting up aExecutorService
(typically aThreadPoolExecutor
orScheduledThreadPoolExecutor
).class
FactoryBean
that sets up aScheduledExecutorService
(by default: aScheduledThreadPoolExecutor
) and exposes it for bean references.class
A simple implementation of Spring'sTaskScheduler
interface, using a single scheduler thread and executing every scheduled task in an individual separate thread.class
JavaBean that allows for configuring aThreadPoolExecutor
in bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a bean reference of its nativeExecutorService
type.class
JavaBean that allows for configuring aThreadPoolExecutor
in bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a SpringTaskExecutor
.class
A standard implementation of Spring'sTaskScheduler
interface, wrapping a nativeScheduledThreadPoolExecutor
and providing all applicable configuration options for it. -
Uses of ApplicationListener in org.springframework.transaction.annotation
Modifier and TypeMethodDescriptionRestrictedTransactionalEventListenerFactory.createApplicationListener
(String beanName, Class<?> type, Method method) -
Uses of ApplicationListener in org.springframework.transaction.event
Modifier and TypeInterfaceDescriptioninterface
TransactionalApplicationListener<E extends ApplicationEvent>
AnApplicationListener
that is invoked according to aTransactionPhase
.Modifier and TypeClassDescriptionclass
TransactionalApplicationListener
adapter that delegates the processing of an event to a targetApplicationListener
instance.class
GenericApplicationListener
adapter that delegates the processing of an event to aTransactionalEventListener
annotated method.Modifier and TypeMethodDescriptionTransactionalEventListenerFactory.createApplicationListener
(String beanName, Class<?> type, Method method) ModifierConstructorDescriptionTransactionalApplicationListenerAdapter
(ApplicationListener<E> targetListener) Construct a new TransactionalApplicationListenerAdapter. -
Uses of ApplicationListener in org.springframework.web.reactive.resource
Modifier and TypeClassDescriptionclass
A central component to use to obtain the public URL path that clients should use to access a static resource. -
Uses of ApplicationListener in org.springframework.web.servlet.resource
Modifier and TypeClassDescriptionclass
A central component to use to obtain the public URL path that clients should use to access a static resource. -
Uses of ApplicationListener in org.springframework.web.socket.messaging
Modifier and TypeClassDescriptionclass
A default implementation ofSimpUserRegistry
that relies onAbstractSubProtocolEvent
application context events to keep track of connected users and their subscriptions.