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 TypeInterfaceDescriptioninterfaceApplicationListener<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 voidApplicationEventPublisher.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 TypeClassDescriptionclassBase class for events raised for anApplicationContext.classEvent raised when anApplicationContextgets closed.classEvent raised when anApplicationContextgets paused.classEvent raised when anApplicationContextgets initialized or refreshed.classEvent raised when anApplicationContextgets restarted.classEvent raised when anApplicationContextgets started.classEvent raised when anApplicationContextgets stopped.Subinterfaces with type arguments of type ApplicationEvent in org.springframework.context.eventModifier and TypeInterfaceDescriptioninterfaceExtended variant of the standardApplicationListenerinterface, exposing further metadata such as the supported event and source type.Methods in org.springframework.context.event with type parameters of type ApplicationEventModifier and TypeMethodDescriptionstatic <E extends ApplicationEvent>
GenericApplicationListenerGenericApplicationListener.forEventType(Class<E> eventType, Consumer<E> consumer) Create a newApplicationListenerfor the given event type.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 voidSimpleApplicationEventMulticaster.invokeListener(ApplicationListener<?> listener, ApplicationEvent event) Invoke the given listener with the given event.voidApplicationEventMulticaster.multicastEvent(ApplicationEvent event) Multicast the given application event to appropriate listeners.voidApplicationEventMulticaster.multicastEvent(ApplicationEvent event, @Nullable org.springframework.core.ResolvableType eventType) Multicast the given application event to appropriate listeners.voidSimpleApplicationEventMulticaster.multicastEvent(ApplicationEvent event) voidSimpleApplicationEventMulticaster.multicastEvent(ApplicationEvent event, @Nullable org.springframework.core.ResolvableType eventType) voidApplicationListenerMethodAdapter.onApplicationEvent(ApplicationEvent event) voidGenericApplicationListenerAdapter.onApplicationEvent(ApplicationEvent event) voidSourceFilteringListener.onApplicationEvent(ApplicationEvent event) protected voidSourceFilteringListener.onApplicationEventInternal(ApplicationEvent event) Actually process the event, after having filtered according to the desired event source already.voidApplicationListenerMethodAdapter.processEvent(ApplicationEvent event) Process the specifiedApplicationEvent, checking if the condition matches and handling a non-null result, if any.ApplicationListenerMethodAdapter.resolveArguments(ApplicationEvent event) Resolve the method arguments to use for the specifiedApplicationEvent.booleanApplicationListenerMethodAdapter.shouldHandle(ApplicationEvent event) Determine whether the listener method would actually handle the given event, checking if the condition matches.Method parameters in org.springframework.context.event with type arguments of type ApplicationEventModifier and TypeMethodDescriptiondefault booleanGenericApplicationListener.supportsEventType(Class<? extends ApplicationEvent> eventType) OverridesSmartApplicationListener.supportsEventType(Class)with delegation toGenericApplicationListener.supportsEventType(ResolvableType).booleanSmartApplicationListener.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 TypeMethodDescriptionvoidAbstractApplicationContext.publishEvent(ApplicationEvent event) Publish the given event to all listeners.