Uses of Interface
org.springframework.context.ApplicationContext
Packages that use ApplicationContext
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.
Annotation support for the Application Context, including JSR-250 "common"
annotations, component-scanning, and Java-based metadata for creating
Spring-managed objects.
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.
Annotation support for asynchronous method execution.
Scheduling convenience classes for the
java.util.concurrent
and jakarta.enterprise.concurrent
packages, allowing to set up a
ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring
context.Classes supporting the org.springframework.ui.context package.
Support classes for integrating a JSR-303 Bean Validation provider
(such as Hibernate Validator) into a Spring ApplicationContext
and in particular with Spring's data binding and validation APIs.
-
Uses of ApplicationContext in org.springframework.context
Subinterfaces of ApplicationContext in org.springframework.contextModifier and TypeInterfaceDescriptioninterface
SPI interface to be implemented by most if not all application contexts.Methods in org.springframework.context that return ApplicationContextModifier and TypeMethodDescriptionApplicationContext.getParent()
Return the parent context, ornull
if there is no parent and this is the root of the context hierarchy.Methods in org.springframework.context with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoid
ApplicationContextAware.setApplicationContext
(ApplicationContext applicationContext) Set the ApplicationContext that this object runs in.void
ConfigurableApplicationContext.setParent
(ApplicationContext parent) Set the parent of this application context. -
Uses of ApplicationContext in org.springframework.context.annotation
Classes in org.springframework.context.annotation that implement ApplicationContextModifier and TypeClassDescriptionclass
Standalone application context, accepting component classes as input — in particular@Configuration
-annotated classes, but also plain@Component
types and JSR-330 compliant classes usingjakarta.inject
annotations. -
Uses of ApplicationContext in org.springframework.context.event
Methods in org.springframework.context.event that return ApplicationContextModifier and TypeMethodDescriptionfinal ApplicationContext
ApplicationContextEvent.getApplicationContext()
Get theApplicationContext
that the event was raised for.Methods in org.springframework.context.event with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoid
EventListenerMethodProcessor.setApplicationContext
(ApplicationContext applicationContext) Constructors in org.springframework.context.event with parameters of type ApplicationContextModifierConstructorDescriptionCreate a new ContextStartedEvent.ContextClosedEvent
(ApplicationContext source) Creates a new ContextClosedEvent.Create a new ContextRefreshedEvent.Create a new ContextStartedEvent.Create a new ContextStoppedEvent. -
Uses of ApplicationContext in org.springframework.context.support
Classes in org.springframework.context.support that implement ApplicationContextModifier and TypeClassDescriptionclass
Abstract implementation of theApplicationContext
interface.class
Base class forApplicationContext
implementations which are supposed to support multiple calls toAbstractApplicationContext.refresh()
, creating a new internal bean factory instance every time.class
AbstractRefreshableApplicationContext
subclass that adds common handling of specified config locations.class
Convenient base class forApplicationContext
implementations, drawing configuration from XML documents containing bean definitions understood by anXmlBeanDefinitionReader
.class
Standalone XML application context, taking the context definition files from the class path, interpreting plain paths as class path resource names that include the package path (e.g.class
Standalone XML application context, taking the context definition files from the file system or from URLs, interpreting plain paths as relative file system locations (e.g.class
Generic ApplicationContext implementation that holds a single internalDefaultListableBeanFactory
instance and does not assume a specific bean definition format.class
AnApplicationContext
implementation that extendsGenericApplicationContext
and implementsGroovyObject
such that beans can be retrieved with the dot de-reference syntax instead of usingAbstractApplicationContext.getBean(java.lang.String)
.class
Convenient application context with built-in XML support.class
ApplicationContext
implementation which supports programmatic registration of beans and messages, rather than reading bean definitions from external configuration sources.Methods in org.springframework.context.support that return ApplicationContextModifier and TypeMethodDescriptionfinal ApplicationContext
ApplicationObjectSupport.getApplicationContext()
Return the ApplicationContext that this object is associated with.AbstractApplicationContext.getParent()
Return the parent context, ornull
if there is no parent (that is, this context is the root of the context hierarchy).protected final ApplicationContext
ApplicationObjectSupport.obtainApplicationContext()
Obtain the ApplicationContext for actual use.Methods in org.springframework.context.support with parameters of type ApplicationContextModifier and TypeMethodDescriptionprotected void
ApplicationObjectSupport.initApplicationContext
(ApplicationContext context) Subclasses can override this for custom initialization behavior.final void
ApplicationObjectSupport.setApplicationContext
(ApplicationContext context) void
AbstractApplicationContext.setParent
(ApplicationContext parent) Set the parent of this application context.void
GenericApplicationContext.setParent
(ApplicationContext parent) Set the parent of this application context, also setting the parent of the internal BeanFactory accordingly.Constructors in org.springframework.context.support with parameters of type ApplicationContextModifierConstructorDescriptionCreate a new AbstractApplicationContext with the given parent context.Create a new AbstractRefreshableApplicationContext with the given parent context.Create a new AbstractRefreshableConfigApplicationContext with the given parent context.Create a new AbstractXmlApplicationContext with the given parent context.ClassPathXmlApplicationContext
(String[] configLocations, boolean refresh, ApplicationContext parent) Create a new ClassPathXmlApplicationContext with the given parent, loading the definitions from the given XML files.ClassPathXmlApplicationContext
(String[] paths, Class<?> clazz, ApplicationContext parent) Create a new ClassPathXmlApplicationContext with the given parent, loading the definitions from the given XML files and automatically refreshing the context.ClassPathXmlApplicationContext
(String[] configLocations, ApplicationContext parent) Create a new ClassPathXmlApplicationContext with the given parent, loading the definitions from the given XML files and automatically refreshing the context.Create a new ClassPathXmlApplicationContext for bean-style configuration.FileSystemXmlApplicationContext
(String[] configLocations, boolean refresh, ApplicationContext parent) Create a new FileSystemXmlApplicationContext with the given parent, loading the definitions from the given XML files.FileSystemXmlApplicationContext
(String[] configLocations, ApplicationContext parent) Create a new FileSystemXmlApplicationContext with the given parent, loading the definitions from the given XML files and automatically refreshing the context.Create a new FileSystemXmlApplicationContext for bean-style configuration.GenericApplicationContext
(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory, ApplicationContext parent) Create a new GenericApplicationContext with the given DefaultListableBeanFactory.Create a new GenericApplicationContext with the given parent.Create a new StaticApplicationContext with the given parent. -
Uses of ApplicationContext in org.springframework.scheduling.annotation
Methods in org.springframework.scheduling.annotation with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoid
ScheduledAnnotationBeanPostProcessor.setApplicationContext
(ApplicationContext applicationContext) Setting anApplicationContext
is optional: If set, registered tasks will be activated in theContextRefreshedEvent
phase; if not set, it will happen atScheduledAnnotationBeanPostProcessor.afterSingletonsInstantiated()
time. -
Uses of ApplicationContext in org.springframework.scheduling.concurrent
Methods in org.springframework.scheduling.concurrent with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoid
ExecutorConfigurationSupport.setApplicationContext
(ApplicationContext applicationContext) void
SimpleAsyncTaskScheduler.setApplicationContext
(ApplicationContext applicationContext) -
Uses of ApplicationContext in org.springframework.ui.context.support
Methods in org.springframework.ui.context.support with parameters of type ApplicationContextModifier and TypeMethodDescriptionstatic ThemeSource
UiApplicationContextUtils.initThemeSource
(ApplicationContext context) Deprecated.Initialize the ThemeSource for the given application context, autodetecting a bean with the name "themeSource". -
Uses of ApplicationContext in org.springframework.validation.beanvalidation
Methods in org.springframework.validation.beanvalidation with parameters of type ApplicationContextModifier and TypeMethodDescriptionvoid
LocalValidatorFactoryBean.setApplicationContext
(ApplicationContext applicationContext)