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.web.context.support |
Classes supporting the
org.springframework.web.context package,
such as WebApplicationContext implementations and various utility classes. |
org.springframework.web.portlet.context |
Support for Spring's application context concept in a portlet environment,
including ApplicationContext implementations and various utility classes.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ApplicationListener<E extends ApplicationEvent>
Interface to be implemented by application event listeners.
|
Modifier and Type | Method and Description |
---|---|
void |
ApplicationEventPublisher.publishEvent(ApplicationEvent event)
Notify all listeners registered with this application of an application
event.
|
Modifier and Type | Class and Description |
---|---|
class |
ApplicationContextEvent
Base class for events raised for an
ApplicationContext . |
class |
ContextClosedEvent
Event raised when an
ApplicationContext gets closed. |
class |
ContextRefreshedEvent
Event raised when an
ApplicationContext gets initialized or refreshed. |
class |
ContextStartedEvent
Event raised when an
ApplicationContext gets started. |
class |
ContextStoppedEvent
Event raised when an
ApplicationContext gets stopped. |
Modifier and Type | Method and Description |
---|---|
protected Collection<ApplicationListener> |
AbstractApplicationEventMulticaster.getApplicationListeners(ApplicationEvent event)
Return a Collection of ApplicationListeners matching the given
event type.
|
void |
SimpleApplicationEventMulticaster.multicastEvent(ApplicationEvent event) |
void |
ApplicationEventMulticaster.multicastEvent(ApplicationEvent event)
Multicast the given application event to appropriate listeners.
|
void |
SourceFilteringListener.onApplicationEvent(ApplicationEvent event) |
void |
GenericApplicationListenerAdapter.onApplicationEvent(ApplicationEvent event) |
protected void |
SourceFilteringListener.onApplicationEventInternal(ApplicationEvent event)
Actually process the event, after having filtered according to the
desired event source already.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
AbstractApplicationEventMulticaster.supportsEvent(ApplicationListener listener,
Class<? extends ApplicationEvent> eventType,
Class<?> sourceType)
Determine whether the given listener supports the given event.
|
boolean |
SmartApplicationListener.supportsEventType(Class<? extends ApplicationEvent> eventType)
Determine whether this listener actually supports the given event type.
|
boolean |
SourceFilteringListener.supportsEventType(Class<? extends ApplicationEvent> eventType) |
boolean |
GenericApplicationListenerAdapter.supportsEventType(Class<? extends ApplicationEvent> eventType) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractApplicationContext.publishEvent(ApplicationEvent event)
Publish the given event to all listeners.
|
Modifier and Type | Class and Description |
---|---|
class |
RequestHandledEvent
Event raised when a request is handled within an ApplicationContext.
|
class |
ServletRequestHandledEvent
Servlet-specific subclass of RequestHandledEvent,
adding servlet-specific context information.
|
Modifier and Type | Class and Description |
---|---|
class |
PortletRequestHandledEvent
Portlet-specific subclass of RequestHandledEvent,
adding portlet-specific context information.
|
Copyright © 2015. All rights reserved.