Package org.springframework.context
@NonNullApi
@NonNullFields
package 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.
There is no necessity for Spring applications to depend on ApplicationContext or even BeanFactory functionality explicitly. One of the strengths of the Spring architecture is that application objects can often be configured without any dependency on Spring-specific APIs.
-
ClassDescriptionCentral interface to provide configuration for an application.Interface to be implemented by any object that wishes to be notified of the
ApplicationContext
that it runs in.Exception thrown during application context initialization.Callback interface for initializing a SpringConfigurableApplicationContext
prior to being refreshed.Class to be extended by all application events.Interface that encapsulates event publication functionality.Interface to be implemented by any object that wishes to be notified of the ApplicationEventPublisher (typically the ApplicationContext) that it runs in.ApplicationListener<E extends ApplicationEvent>Interface to be implemented by application event listeners.Interface to be implemented by any object that wishes to be notified of theApplicationStartup
that it runs with.SPI interface to be implemented by most if not all application contexts.Interface to be implemented by any object that wishes to be notified of aStringValueResolver
for the resolution of embedded definition values.Interface to be implemented by any bean that wishes to be notified of theEnvironment
that it runs in.Sub-interface of MessageSource to be implemented by objects that can resolve messages hierarchically.A common interface defining methods for start/stop lifecycle control.Strategy interface for processing Lifecycle beans within the ApplicationContext.Strategy interface for resolving messages, with support for the parameterization and internationalization of such messages.Interface to be implemented by any object that wishes to be notified of theMessageSource
(typically the ApplicationContext) that it runs in.Interface for objects that are suitable for message resolution in aMessageSource
.Exception thrown when a message can't be resolved.AnApplicationEvent
that carries an arbitrary payload.Interface for objects that may participate in a phased process such as lifecycle management.Interface to be implemented by any object that wishes to be notified of theResourceLoader
(typically the ApplicationContext) that it runs in.An extension of theLifecycle
interface for those objects that require to be started uponApplicationContext
refresh and/or shutdown in a particular order.