Uses of Interface
org.springframework.context.ConfigurableApplicationContext
Packages that use 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.
Ahead-of-time (AOT) support for the Spring TestContext Framework.
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
Classes in org.springframework.context with type parameters of type ConfigurableApplicationContextModifier and TypeInterfaceDescriptioninterfaceCallback interface for initializing a SpringConfigurableApplicationContextprior to being refreshed. -
Uses of ConfigurableApplicationContext in org.springframework.context.annotation
Classes in org.springframework.context.annotation that implement ConfigurableApplicationContextModifier and TypeClassDescriptionclassStandalone application context, accepting component classes as input — in particular@Configuration-annotated classes, but also plain@Componenttypes and JSR-330 compliant classes usingjakarta.injectannotations. -
Uses of ConfigurableApplicationContext in org.springframework.context.aot
Classes in org.springframework.context.aot with type parameters of type ConfigurableApplicationContextModifier and TypeInterfaceDescriptioninterfaceSpecializedApplicationContextInitializerused to initialize aConfigurableApplicationContextusing artifacts that were generated ahead-of-time.Methods in org.springframework.context.aot with type parameters of type ConfigurableApplicationContextModifier and TypeMethodDescriptionstatic <C extends ConfigurableApplicationContext>
AotApplicationContextInitializer<C> AotApplicationContextInitializer.forInitializerClasses(String... initializerClassNames) Factory method to create a newAotApplicationContextInitializerinstance that delegates to other initializers loaded from the given set of class names.static <C extends ConfigurableApplicationContext>
ApplicationContextInitializer<C> AotApplicationContextInitializer.instantiateInitializer(String initializerClassName, @Nullable ClassLoader classLoader) -
Uses of ConfigurableApplicationContext in org.springframework.context.support
Classes in org.springframework.context.support that implement ConfigurableApplicationContextModifier and TypeClassDescriptionclassAbstract implementation of theApplicationContextinterface.classBase class forApplicationContextimplementations which are supposed to support multiple calls toAbstractApplicationContext.refresh(), creating a new internal bean factory instance every time.classAbstractRefreshableApplicationContextsubclass that adds common handling of specified config locations.classConvenient base class forApplicationContextimplementations, drawing configuration from XML documents containing bean definitions understood by anXmlBeanDefinitionReader.classStandalone 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 (for example, "mypackage/myresource.txt").classStandalone XML application context, taking the context definition files from the file system or from URLs, interpreting plain paths as relative file system locations (for example, "mydir/myfile.txt").classGeneric ApplicationContext implementation that holds a single internalDefaultListableBeanFactoryinstance and does not assume a specific bean definition format.classAnApplicationContextimplementation that extendsGenericApplicationContextand implementsGroovyObjectsuch that beans can be retrieved with the dot de-reference syntax instead of usingAbstractApplicationContext.getBean(String).classConvenient application context with built-in XML support.classApplicationContextimplementation 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
Methods in org.springframework.test.context with parameters of type ConfigurableApplicationContextModifier and TypeMethodDescriptionvoidContextCustomizer.customizeContext(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Customize the suppliedConfigurableApplicationContextafter bean definitions have been loaded into the context but before the context has been refreshed. -
Uses of ConfigurableApplicationContext in org.springframework.test.context.aot
Methods in org.springframework.test.context.aot that return types with arguments of type ConfigurableApplicationContextModifier and TypeMethodDescriptionAotTestContextInitializers.getContextInitializer(Class<?> testClass) Get the AOTApplicationContextInitializerfor the specified test class.Method parameters in org.springframework.test.context.aot with type arguments of type ConfigurableApplicationContextModifier and TypeMethodDescriptionAotContextLoader.loadContextForAotRuntime(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) Load a newApplicationContextfor AOT run-time execution based on the suppliedMergedContextConfigurationandApplicationContextInitializer. -
Uses of ConfigurableApplicationContext in org.springframework.test.context.support
Methods in org.springframework.test.context.support that return ConfigurableApplicationContextModifier and TypeMethodDescriptionAbstractGenericContextLoader.loadContext(String... locations) Deprecated.Methods in org.springframework.test.context.support with parameters of type ConfigurableApplicationContextModifier and TypeMethodDescriptionstatic voidTestPropertySourceUtils.addInlinedPropertiesToEnvironment(ConfigurableApplicationContext context, String... inlinedProperties) Add the given inlined properties to theEnvironmentof the suppliedcontext.static voidTestPropertySourceUtils.addPropertiesFilesToEnvironment(ConfigurableApplicationContext context, String... locations) Add thePropertiesfiles from the given resourcelocationsto theEnvironmentof the suppliedcontext.static voidTestPropertySourceUtils.addPropertySourcesToEnvironment(ConfigurableApplicationContext context, List<PropertySourceDescriptor> descriptors) protected voidAbstractContextLoader.customizeContext(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Customize theConfigurableApplicationContextcreated by thisContextLoaderafter bean definitions have been loaded into the context but before the context has been refreshed.protected voidAbstractContextLoader.prepareContext(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Prepare theConfigurableApplicationContextcreated by thisSmartContextLoaderbefore bean definitions are read.Method parameters in org.springframework.test.context.support with type arguments of type ConfigurableApplicationContextModifier and TypeMethodDescriptionfinal ApplicationContextAbstractDelegatingSmartContextLoader.loadContextForAotRuntime(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) Delegates to an appropriate candidateSmartContextLoaderto load anApplicationContextfor AOT run-time execution.AbstractGenericContextLoader.loadContextForAotRuntime(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) Load aGenericApplicationContextfor AOT run-time execution based on the suppliedMergedContextConfigurationandApplicationContextInitializer. -
Uses of ConfigurableApplicationContext in org.springframework.test.context.web
Method parameters in org.springframework.test.context.web with type arguments of type ConfigurableApplicationContextModifier and TypeMethodDescriptionAbstractGenericWebContextLoader.loadContextForAotRuntime(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) Load aGenericWebApplicationContextfor AOT run-time execution based on the suppliedMergedContextConfigurationandApplicationContextInitializer. -
Uses of ConfigurableApplicationContext in org.springframework.web.context
Subinterfaces of ConfigurableApplicationContext in org.springframework.web.contextModifier and TypeInterfaceDescriptioninterfaceInterface to be implemented by configurable web application contexts.Methods in org.springframework.web.context that return types with arguments of type ConfigurableApplicationContextModifier and TypeMethodDescriptionContextLoader.determineContextInitializerClasses(jakarta.servlet.ServletContext servletContext) Return theApplicationContextInitializerimplementation classes to use if any have been specified byContextLoader.CONTEXT_INITIALIZER_CLASSES_PARAM. -
Uses of ConfigurableApplicationContext in org.springframework.web.context.support
Classes in org.springframework.web.context.support that implement ConfigurableApplicationContextModifier and TypeClassDescriptionclassAbstractRefreshableApplicationContextsubclass which implements theConfigurableWebApplicationContextinterface for web environments.classWebApplicationContextimplementation which accepts component classes as input — in particular@Configurationclasses, but also plain@Componentclasses as well as JSR-330 compliant classes usingjakarta.injectannotations.classSubclass ofGenericApplicationContext, suitable for web environments.classWebApplicationContextimplementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by aGroovyBeanDefinitionReader.classStaticWebApplicationContextimplementation for testing.classWebApplicationContextimplementation which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader. -
Uses of ConfigurableApplicationContext in org.springframework.web.servlet
Methods in org.springframework.web.servlet with parameters of type ConfigurableApplicationContextModifier and TypeMethodDescriptionprotected voidFrameworkServlet.applyInitializers(ConfigurableApplicationContext wac) Delegate the WebApplicationContext before it is refreshed to anyApplicationContextInitializerinstances specified by the "contextInitializerClasses" servlet init-param.
AbstractGenericContextLoader.loadContext(MergedContextConfiguration)