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.context.event |
Support classes for application events, like standard context events.
|
org.springframework.context.support |
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
|
org.springframework.jms.config |
Support package for declarative messaging configuration,
with Java configuration and XML schema support.
|
org.springframework.messaging.simp.user |
Support for handling messages to "user" destinations (i.e.
|
org.springframework.scheduling.annotation |
Java 5 annotation for asynchronous method execution.
|
org.springframework.transaction.event |
Spring's support for listening to transaction events.
|
org.springframework.web.reactive.resource |
Support classes for serving static resources.
|
org.springframework.web.socket.messaging |
WebSocket integration for Spring's messaging module.
|
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 |
---|---|
void |
ConfigurableApplicationContext.addApplicationListener(ApplicationListener<?> listener)
Add a new ApplicationListener that will be notified on context events
such as context refresh and context shutdown.
|
Modifier and Type | Interface and Description |
---|---|
interface |
GenericApplicationListener
Extended variant of the standard
ApplicationListener interface,
exposing further metadata such as the supported event and source type. |
interface |
SmartApplicationListener
Extended variant of the standard
ApplicationListener interface,
exposing further metadata such as the supported event and source type. |
Modifier and Type | Class and Description |
---|---|
class |
ApplicationListenerMethodAdapter
GenericApplicationListener adapter that delegates the processing of
an event to an EventListener annotated method. |
class |
GenericApplicationListenerAdapter
GenericApplicationListener adapter that determines supported event types
through introspecting the generically declared type of the target listener. |
class |
SourceFilteringListener
ApplicationListener decorator that filters
events from a specified event source, invoking its delegate listener for
matching ApplicationEvent objects only. |
Modifier and Type | Method and Description |
---|---|
ApplicationListener<?> |
DefaultEventListenerFactory.createApplicationListener(String beanName,
Class<?> type,
Method method) |
ApplicationListener<?> |
EventListenerFactory.createApplicationListener(String beanName,
Class<?> type,
Method method)
Create an
ApplicationListener for the specified method. |
Modifier and Type | Method and Description |
---|---|
protected 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 Type | Method and Description |
---|---|
void |
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 Type | Method and Description |
---|---|
void |
AbstractApplicationEventMulticaster.removeApplicationListeners(Predicate<ApplicationListener<?>> predicate) |
void |
ApplicationEventMulticaster.removeApplicationListeners(Predicate<ApplicationListener<?>> predicate)
Remove all matching listeners from the set of registered
ApplicationListener instances (which includes adapter classes
such as ApplicationListenerMethodAdapter , e.g. |
Constructor and Description |
---|
GenericApplicationListenerAdapter(ApplicationListener<?> delegate)
Create a new GenericApplicationListener for the given delegate.
|
SourceFilteringListener(Object source,
ApplicationListener<?> delegate)
Create a SourceFilteringListener for the given event source.
|
Modifier and Type | Method and Description |
---|---|
Collection<ApplicationListener<?>> |
AbstractApplicationContext.getApplicationListeners()
Return the list of statically specified ApplicationListeners.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractApplicationContext.addApplicationListener(ApplicationListener<?> listener) |
Modifier and Type | Class and Description |
---|---|
class |
JmsListenerEndpointRegistry
Creates the necessary
MessageListenerContainer instances for the
registered endpoints. |
Modifier and Type | Class and Description |
---|---|
class |
MultiServerUserRegistry
SimpUserRegistry that looks up users in a "local" user registry as
well as a set of "remote" user registries. |
class |
UserRegistryMessageHandler
MessageHandler that handles user registry broadcasts from other
application servers and periodically broadcasts the content of the local
user registry. |
Modifier and Type | Class and Description |
---|---|
class |
ScheduledAnnotationBeanPostProcessor
Bean post-processor that registers methods annotated with @
Scheduled
to be invoked by a TaskScheduler according
to the "fixedRate", "fixedDelay", or "cron" expression provided via the annotation. |
Modifier and Type | Interface and Description |
---|---|
interface |
TransactionalApplicationListener<E extends ApplicationEvent>
An
ApplicationListener that is invoked according to a TransactionPhase . |
Modifier and Type | Class and Description |
---|---|
class |
TransactionalApplicationListenerAdapter<E extends ApplicationEvent>
TransactionalApplicationListener adapter that delegates the processing of
an event to a target ApplicationListener instance. |
class |
TransactionalApplicationListenerMethodAdapter
GenericApplicationListener adapter that delegates the processing of
an event to a TransactionalEventListener annotated method. |
Modifier and Type | Method and Description |
---|---|
ApplicationListener<?> |
TransactionalEventListenerFactory.createApplicationListener(String beanName,
Class<?> type,
Method method) |
Constructor and Description |
---|
TransactionalApplicationListenerAdapter(ApplicationListener<E> targetListener)
Construct a new TransactionalApplicationListenerAdapter.
|
Modifier and Type | Class and Description |
---|---|
class |
ResourceUrlProvider
A central component to use to obtain the public URL path that clients should
use to access a static resource.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultSimpUserRegistry
A default implementation of
SimpUserRegistry that relies on
AbstractSubProtocolEvent application context events to keep
track of connected users and their subscriptions. |