Uses of Interface
org.springframework.context.ConfigurableApplicationContext
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.
AOT support for application contexts.
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
This package contains the Spring TestContext Framework which
provides annotation-driven unit and integration testing support that is
agnostic of the actual testing framework in use.
Support classes for the Spring TestContext Framework.
Web support classes for the Spring TestContext Framework.
Contains a variant of the application context interface for web applications,
and the ContextLoaderListener that bootstraps a root web application context.
Classes supporting the
org.springframework.web.context
package,
such as WebApplicationContext implementations and various utility classes.Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
-
Uses of ConfigurableApplicationContext in org.springframework.context
Modifier and TypeInterfaceDescriptioninterface
Callback interface for initializing a SpringConfigurableApplicationContext
prior to being refreshed. -
Uses of ConfigurableApplicationContext in org.springframework.context.annotation
Modifier 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 ConfigurableApplicationContext in org.springframework.context.aot
Modifier and TypeMethodDescriptionvoid
ApplicationContextAotInitializer.initialize
(ConfigurableApplicationContext context, String... initializerClassNames) Initialize the specified application context using the specifiedApplicationContextInitializer
class names. -
Uses of ConfigurableApplicationContext in org.springframework.context.support
Modifier 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. -
Uses of ConfigurableApplicationContext in org.springframework.test.context
Modifier and TypeMethodDescriptionvoid
ContextCustomizer.customizeContext
(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Customize the suppliedConfigurableApplicationContext
after bean definitions have been loaded into the context but before the context has been refreshed. -
Uses of ConfigurableApplicationContext in org.springframework.test.context.support
Modifier and TypeMethodDescriptionAbstractGenericContextLoader.loadContext
(String... locations) Load a Spring ApplicationContext from the suppliedlocations
.AbstractGenericContextLoader.loadContext
(MergedContextConfiguration mergedConfig) Load a Spring ApplicationContext from the suppliedMergedContextConfiguration
.Modifier and TypeMethodDescriptionstatic void
TestPropertySourceUtils.addInlinedPropertiesToEnvironment
(ConfigurableApplicationContext context, String... inlinedProperties) Add the given inlined properties to theEnvironment
of the suppliedcontext
.static void
TestPropertySourceUtils.addPropertiesFilesToEnvironment
(ConfigurableApplicationContext context, String... locations) Add theProperties
files from the given resourcelocations
to theEnvironment
of the suppliedcontext
.protected void
AbstractContextLoader.customizeContext
(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Customize theConfigurableApplicationContext
created by thisContextLoader
after bean definitions have been loaded into the context but before the context has been refreshed.protected void
AbstractContextLoader.prepareContext
(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Prepare theConfigurableApplicationContext
created by thisSmartContextLoader
before bean definitions are read. -
Uses of ConfigurableApplicationContext in org.springframework.test.context.web
Modifier and TypeMethodDescriptionAbstractGenericWebContextLoader.loadContext
(MergedContextConfiguration mergedConfig) Load a SpringWebApplicationContext
from the suppliedMergedContextConfiguration
. -
Uses of ConfigurableApplicationContext in org.springframework.web.context
Modifier and TypeInterfaceDescriptioninterface
Interface to be implemented by configurable web application contexts.Modifier and TypeMethodDescriptionContextLoader.determineContextInitializerClasses
(ServletContext servletContext) Return theApplicationContextInitializer
implementation classes to use if any have been specified byContextLoader.CONTEXT_INITIALIZER_CLASSES_PARAM
. -
Uses of ConfigurableApplicationContext in org.springframework.web.context.support
Modifier and TypeClassDescriptionclass
AbstractRefreshableApplicationContext
subclass which implements theConfigurableWebApplicationContext
interface for web environments.class
WebApplicationContext
implementation which accepts component classes as input — in particular@Configuration
classes, but also plain@Component
classes as well as JSR-330 compliant classes usingjakarta.inject
annotations.class
Subclass ofGenericApplicationContext
, suitable for web environments.class
WebApplicationContext
implementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by aGroovyBeanDefinitionReader
.class
StaticWebApplicationContext
implementation for testing.class
WebApplicationContext
implementation which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader
. -
Uses of ConfigurableApplicationContext in org.springframework.web.servlet
Modifier and TypeMethodDescriptionprotected void
FrameworkServlet.applyInitializers
(ConfigurableApplicationContext wac) Delegate the WebApplicationContext before it is refreshed to anyApplicationContextInitializer
instances specified by the "contextInitializerClasses" servlet init-param.