Uses of Interface
org.springframework.context.ApplicationContextInitializer
Packages that use 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
Subinterfaces of ApplicationContextInitializer in org.springframework.context.aotModifier and TypeInterfaceDescriptioninterface
SpecializedApplicationContextInitializer
used to initialize aConfigurableApplicationContext
using artifacts that were generated ahead-of-time.Methods in org.springframework.context.aot that return ApplicationContextInitializerModifier and TypeMethodDescriptionstatic <C extends ConfigurableApplicationContext>
ApplicationContextInitializer<C>AotApplicationContextInitializer.instantiateInitializer
(String initializerClassName, ClassLoader classLoader) -
Uses of ApplicationContextInitializer in org.springframework.test.context
Methods in org.springframework.test.context that return types with arguments of type ApplicationContextInitializerModifier 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
.Constructor parameters in org.springframework.test.context with type arguments of type ApplicationContextInitializerModifierConstructorDescriptionMergedContextConfiguration
(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
Methods in org.springframework.test.context.aot that return ApplicationContextInitializerModifier and TypeMethodDescriptionAotTestContextInitializers.getContextInitializer
(Class<?> testClass) Get the AOTApplicationContextInitializer
for the specified test class.Methods in org.springframework.test.context.aot that return types with arguments of type ApplicationContextInitializerModifier and TypeMethodDescriptionAotTestContextInitializers.getContextInitializerClass
(Class<?> testClass) Get the AOTApplicationContextInitializer
Class
for the specified test class.Methods in org.springframework.test.context.aot with parameters of type ApplicationContextInitializerModifier 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
Methods in org.springframework.test.context.support with parameters of type ApplicationContextInitializerModifier 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
Methods in org.springframework.test.context.web with parameters of type ApplicationContextInitializerModifier and TypeMethodDescriptionAbstractGenericWebContextLoader.loadContextForAotRuntime
(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) Load aGenericWebApplicationContext
for AOT run-time execution based on the suppliedMergedContextConfiguration
andApplicationContextInitializer
.Constructor parameters in org.springframework.test.context.web with type arguments of type ApplicationContextInitializerModifierConstructorDescriptionWebMergedContextConfiguration
(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
Methods in org.springframework.web.context that return ApplicationContextInitializerModifier and TypeMethodDescriptionprotected ApplicationContextInitializer<?>[]
AbstractContextLoaderInitializer.getRootApplicationContextInitializers()
Specify application context initializers to be applied to the root application context that theContextLoaderListener
is being created with.Methods in org.springframework.web.context that return types with arguments of type ApplicationContextInitializerModifier and TypeMethodDescriptionContextLoader.determineContextInitializerClasses
(ServletContext servletContext) Return theApplicationContextInitializer
implementation classes to use if any have been specified byContextLoader.CONTEXT_INITIALIZER_CLASSES_PARAM
.Methods in org.springframework.web.context with parameters of type ApplicationContextInitializerModifier 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
Methods in org.springframework.web.servlet with parameters of type ApplicationContextInitializerModifier 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
Methods in org.springframework.web.servlet.support that return ApplicationContextInitializerModifier 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)