Uses of Interface
org.springframework.context.ApplicationContextInitializer
Package
Description
AOT support for application contexts.
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.
Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
Support classes for Spring's web MVC framework.
-
Uses of ApplicationContextInitializer in org.springframework.context.aot
Modifier and TypeInterfaceDescriptioninterface
SpecializedApplicationContextInitializer
used to initialize aConfigurableApplicationContext
using artifacts that were generated ahead-of-time.Modifier and TypeMethodDescriptionstatic <C extends ConfigurableApplicationContext>
ApplicationContextInitializer<C>AotApplicationContextInitializer.instantiateInitializer
(String initializerClassName, ClassLoader classLoader) -
Uses of ApplicationContextInitializer in org.springframework.test.context
Modifier and TypeMethodDescriptionSet<Class<? extends ApplicationContextInitializer<?>>>
MergedContextConfiguration.getContextInitializerClasses()
Get the mergedApplicationContextInitializer
classes for the test class.Class<? extends ApplicationContextInitializer<?>>[]
ContextConfigurationAttributes.getInitializers()
Get theApplicationContextInitializer
classes that were declared via@ContextConfiguration
.ModifierConstructorDescriptionMergedContextConfiguration
(Class<?> testClass, String[] locations, Class<?>[] classes, Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, String[] activeProfiles, String[] propertySourceLocations, String[] propertySourceProperties, Set<ContextCustomizer> contextCustomizers, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) Deprecated.MergedContextConfiguration
(Class<?> testClass, String[] locations, Class<?>[] classes, Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, String[] activeProfiles, String[] propertySourceLocations, String[] propertySourceProperties, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) MergedContextConfiguration
(Class<?> testClass, String[] locations, Class<?>[] classes, Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, String[] activeProfiles, List<PropertySourceDescriptor> propertySourceDescriptors, String[] propertySourceProperties, Set<ContextCustomizer> contextCustomizers, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) Create a newMergedContextConfiguration
instance for the supplied parameters.MergedContextConfiguration
(Class<?> testClass, String[] locations, Class<?>[] classes, Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, String[] activeProfiles, ContextLoader contextLoader) Create a newMergedContextConfiguration
instance for the supplied parameters.MergedContextConfiguration
(Class<?> testClass, String[] locations, Class<?>[] classes, Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, String[] activeProfiles, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) Create a newMergedContextConfiguration
instance for the supplied parameters. -
Uses of ApplicationContextInitializer in org.springframework.test.context.aot
Modifier and TypeMethodDescriptionAotTestContextInitializers.getContextInitializer
(Class<?> testClass) Get the AOTApplicationContextInitializer
for the specified test class.Modifier and TypeMethodDescriptionAotTestContextInitializers.getContextInitializerClass
(Class<?> testClass) Get the AOTApplicationContextInitializer
Class
for the specified test class.Modifier and TypeMethodDescriptionAotContextLoader.loadContextForAotRuntime
(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) Load a newApplicationContext
for AOT run-time execution based on the suppliedMergedContextConfiguration
andApplicationContextInitializer
. -
Uses of ApplicationContextInitializer in org.springframework.test.context.support
Modifier and TypeMethodDescriptionfinal ApplicationContext
AbstractDelegatingSmartContextLoader.loadContextForAotRuntime
(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) Delegates to an appropriate candidateSmartContextLoader
to load anApplicationContext
for AOT run-time execution.AbstractGenericContextLoader.loadContextForAotRuntime
(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) Load aGenericApplicationContext
for AOT run-time execution based on the suppliedMergedContextConfiguration
andApplicationContextInitializer
. -
Uses of ApplicationContextInitializer in org.springframework.test.context.web
Modifier and TypeMethodDescriptionAbstractGenericWebContextLoader.loadContextForAotRuntime
(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) Load aGenericWebApplicationContext
for AOT run-time execution based on the suppliedMergedContextConfiguration
andApplicationContextInitializer
.ModifierConstructorDescriptionWebMergedContextConfiguration
(Class<?> testClass, String[] locations, Class<?>[] classes, Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, String[] activeProfiles, String[] propertySourceLocations, String[] propertySourceProperties, String resourceBasePath, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) WebMergedContextConfiguration
(Class<?> testClass, String[] locations, Class<?>[] classes, Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, String[] activeProfiles, String[] propertySourceLocations, String[] propertySourceProperties, Set<ContextCustomizer> contextCustomizers, String resourceBasePath, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) WebMergedContextConfiguration
(Class<?> testClass, String[] locations, Class<?>[] classes, Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, String[] activeProfiles, List<PropertySourceDescriptor> propertySourceDescriptors, String[] propertySourceProperties, Set<ContextCustomizer> contextCustomizers, String resourceBasePath, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) Create a newWebMergedContextConfiguration
instance for the supplied parameters. -
Uses of ApplicationContextInitializer in org.springframework.web.context
Modifier and TypeMethodDescriptionprotected ApplicationContextInitializer<?>[]
AbstractContextLoaderInitializer.getRootApplicationContextInitializers()
Specify application context initializers to be applied to the root application context that theContextLoaderListener
is being created with.Modifier and TypeMethodDescriptionContextLoader.determineContextInitializerClasses
(ServletContext servletContext) Return theApplicationContextInitializer
implementation classes to use if any have been specified byContextLoader.CONTEXT_INITIALIZER_CLASSES_PARAM
.Modifier and TypeMethodDescriptionvoid
ContextLoader.setContextInitializers
(ApplicationContextInitializer<?>... initializers) Specify whichApplicationContextInitializer
instances should be used to initialize the application context used by thisContextLoader
. -
Uses of ApplicationContextInitializer in org.springframework.web.servlet
Modifier and TypeMethodDescriptionvoid
FrameworkServlet.setContextInitializers
(ApplicationContextInitializer<?>... initializers) Specify whichApplicationContextInitializer
instances should be used to initialize the application context used by thisFrameworkServlet
. -
Uses of ApplicationContextInitializer in org.springframework.web.servlet.support
Modifier and TypeMethodDescriptionprotected ApplicationContextInitializer<?>[]
AbstractDispatcherServletInitializer.getServletApplicationContextInitializers()
Specify application context initializers to be applied to the servlet-specific application context that theDispatcherServlet
is being created with.
MergedContextConfiguration(Class, String[], Class[], Set, String[], List, String[], Set, ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration)