Uses of Interface
org.springframework.context.ApplicationListener
Packages that use 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.
Java 5 annotation for asynchronous method execution.
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
Methods in org.springframework.context that return ApplicationListenerModifier and TypeMethodDescriptionstatic <T> ApplicationListener<PayloadApplicationEvent<T>>ApplicationListener.forPayload(Consumer<T> consumer) Create a newApplicationListenerfor the given payload consumer.Methods in org.springframework.context with parameters of type ApplicationListenerModifier and TypeMethodDescriptionvoidConfigurableApplicationContext.addApplicationListener(ApplicationListener<?> listener) Add a new ApplicationListener that will be notified on context events such as context refresh and context shutdown. -
Uses of ApplicationListener in org.springframework.context.event
Subinterfaces of ApplicationListener in org.springframework.context.eventModifier and TypeInterfaceDescriptioninterfaceExtended variant of the standardApplicationListenerinterface, exposing further metadata such as the supported event and source type.interfaceExtended variant of the standardApplicationListenerinterface, exposing further metadata such as the supported event and source type.Classes in org.springframework.context.event that implement ApplicationListenerModifier and TypeClassDescriptionclassGenericApplicationListeneradapter that delegates the processing of an event to anEventListenerannotated method.classGenericApplicationListeneradapter that determines supported event types through introspecting the generically declared type of the target listener.classApplicationListenerdecorator that filters events from a specified event source, invoking its delegate listener for matchingApplicationEventobjects only.Methods in org.springframework.context.event that return ApplicationListenerModifier and TypeMethodDescriptionDefaultEventListenerFactory.createApplicationListener(String beanName, Class<?> type, Method method) EventListenerFactory.createApplicationListener(String beanName, Class<?> type, Method method) Create anApplicationListenerfor the specified method.Methods in org.springframework.context.event that return types with arguments of type ApplicationListenerModifier 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.Methods in org.springframework.context.event with parameters of type ApplicationListenerModifier and TypeMethodDescriptionvoidAbstractApplicationEventMulticaster.addApplicationListener(ApplicationListener<?> listener) voidApplicationEventMulticaster.addApplicationListener(ApplicationListener<?> listener) Add a listener to be notified of all events.protected voidSimpleApplicationEventMulticaster.invokeListener(ApplicationListener<?> listener, ApplicationEvent event) Invoke the given listener with the given event.voidAbstractApplicationEventMulticaster.removeApplicationListener(ApplicationListener<?> listener) voidApplicationEventMulticaster.removeApplicationListener(ApplicationListener<?> listener) Remove a listener from the notification list.protected booleanAbstractApplicationEventMulticaster.supportsEvent(ApplicationListener<?> listener, ResolvableType eventType, Class<?> sourceType) Determine whether the given listener supports the given event.Method parameters in org.springframework.context.event with type arguments of type ApplicationListenerModifier and TypeMethodDescriptionvoidAbstractApplicationEventMulticaster.removeApplicationListeners(Predicate<ApplicationListener<?>> predicate) voidApplicationEventMulticaster.removeApplicationListeners(Predicate<ApplicationListener<?>> predicate) Remove all matching listeners from the set of registeredApplicationListenerinstances (which includes adapter classes such asApplicationListenerMethodAdapter, e.g.Constructors in org.springframework.context.event with parameters of type ApplicationListenerModifierConstructorDescriptionGenericApplicationListenerAdapter(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
Methods in org.springframework.context.support that return types with arguments of type ApplicationListenerModifier and TypeMethodDescriptionAbstractApplicationContext.getApplicationListeners()Return the list of statically specified ApplicationListeners.Methods in org.springframework.context.support with parameters of type ApplicationListenerModifier and TypeMethodDescriptionvoidAbstractApplicationContext.addApplicationListener(ApplicationListener<?> listener) -
Uses of ApplicationListener in org.springframework.jms.config
Classes in org.springframework.jms.config that implement ApplicationListenerModifier and TypeClassDescriptionclassCreates the necessaryMessageListenerContainerinstances for the registered endpoints. -
Uses of ApplicationListener in org.springframework.messaging.simp.user
Classes in org.springframework.messaging.simp.user that implement ApplicationListenerModifier and TypeClassDescriptionclassSimpUserRegistrythat looks up users in a "local" user registry as well as a set of "remote" user registries.classMessageHandlerthat 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
Classes in org.springframework.scheduling.annotation that implement ApplicationListenerModifier and TypeClassDescriptionclassBean post-processor that registers methods annotated with@Scheduledto be invoked by aTaskScheduleraccording to the "fixedRate", "fixedDelay", or "cron" expression provided via the annotation. -
Uses of ApplicationListener in org.springframework.transaction.event
Subinterfaces of ApplicationListener in org.springframework.transaction.eventModifier and TypeInterfaceDescriptioninterfaceTransactionalApplicationListener<E extends ApplicationEvent>AnApplicationListenerthat is invoked according to aTransactionPhase.Classes in org.springframework.transaction.event that implement ApplicationListenerModifier and TypeClassDescriptionclassTransactionalApplicationListeneradapter that delegates the processing of an event to a targetApplicationListenerinstance.classGenericApplicationListeneradapter that delegates the processing of an event to aTransactionalEventListenerannotated method.Methods in org.springframework.transaction.event that return ApplicationListenerModifier and TypeMethodDescriptionTransactionalEventListenerFactory.createApplicationListener(String beanName, Class<?> type, Method method) Constructors in org.springframework.transaction.event with parameters of type ApplicationListenerModifierConstructorDescriptionTransactionalApplicationListenerAdapter(ApplicationListener<E> targetListener) Construct a new TransactionalApplicationListenerAdapter. -
Uses of ApplicationListener in org.springframework.web.reactive.resource
Classes in org.springframework.web.reactive.resource that implement ApplicationListenerModifier and TypeClassDescriptionclassA 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
Classes in org.springframework.web.servlet.resource that implement ApplicationListenerModifier and TypeClassDescriptionclassA 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
Classes in org.springframework.web.socket.messaging that implement ApplicationListenerModifier and TypeClassDescriptionclassA default implementation ofSimpUserRegistrythat relies onAbstractSubProtocolEventapplication context events to keep track of connected users and their subscriptions.