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.scheduling.annotation |
JDK 1.5+ annotation for asynchronous method execution.
|
org.springframework.scheduling.config |
Support package for declarative scheduling configuration,
with XML schema being the primary configuration format.
|
org.springframework.web.portlet |
Provides JSR-168 portlets that integrate with the application context
infrastructure, and the core interfaces and classes for the Portlet
variant of Spring's web MVC framework.
|
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 |
SmartApplicationListener
Extended variant of the standard
ApplicationListener interface,
exposing further metadata such as the supported event type. |
Modifier and Type | Class and Description |
---|---|
class |
GenericApplicationListenerAdapter
SmartApplicationListener 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 |
---|---|
protected Collection<ApplicationListener> |
AbstractApplicationEventMulticaster.getApplicationListeners()
Return a Collection containing all ApplicationListeners.
|
protected Collection<ApplicationListener> |
AbstractApplicationEventMulticaster.getApplicationListeners(ApplicationEvent event)
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.
|
void |
AbstractApplicationEventMulticaster.removeApplicationListener(ApplicationListener listener) |
void |
ApplicationEventMulticaster.removeApplicationListener(ApplicationListener listener)
Remove a listener from the notification list.
|
protected boolean |
AbstractApplicationEventMulticaster.supportsEvent(ApplicationListener listener,
Class<? extends ApplicationEvent> eventType,
Class<?> sourceType)
Determine whether the given listener supports the given event.
|
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) |
protected void |
AbstractApplicationContext.addListener(ApplicationListener<?> listener)
Deprecated.
as of Spring 3.0, in favor of
AbstractApplicationContext.addApplicationListener(org.springframework.context.ApplicationListener<?>) |
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 | Class and Description |
---|---|
class |
ContextLifecycleScheduledTaskRegistrar
ScheduledTaskRegistrar subclass that redirects the actual scheduling
of tasks to the ContextRefreshedEvent callback. |
Modifier and Type | Class and Description |
---|---|
class |
DispatcherPortlet
Central dispatcher for use within the Portlet MVC framework, e.g.
|
class |
FrameworkPortlet
Base portlet for Spring's portlet framework.
|
Copyright © 2015. All rights reserved.