Uses of Class
org.springframework.context.ApplicationEvent
Packages that use 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.
-
Uses of ApplicationEvent in org.springframework.context
Classes in org.springframework.context with type parameters of type ApplicationEventModifier and TypeInterfaceDescriptioninterface
ApplicationListener<E extends ApplicationEvent>
Interface to be implemented by application event listeners.Subclasses of ApplicationEvent in org.springframework.contextMethods in org.springframework.context with parameters of type ApplicationEventModifier 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
Subclasses of ApplicationEvent in org.springframework.context.eventModifier 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.Methods in org.springframework.context.event with parameters of type ApplicationEventModifier and TypeMethodDescriptionprotected Collection<ApplicationListener<?>>
AbstractApplicationEventMulticaster.getApplicationListeners
(ApplicationEvent event, org.springframework.core.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, org.springframework.core.ResolvableType eventType) Multicast the given application event to appropriate listeners.void
SimpleApplicationEventMulticaster.multicastEvent
(ApplicationEvent event) void
SimpleApplicationEventMulticaster.multicastEvent
(ApplicationEvent event, org.springframework.core.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
.Method parameters in org.springframework.context.event with type arguments of type ApplicationEventModifier 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
Methods in org.springframework.context.support with parameters of type ApplicationEventModifier and TypeMethodDescriptionvoid
AbstractApplicationContext.publishEvent
(ApplicationEvent event) Publish the given event to all listeners.