Uses of Interface
org.springframework.context.ApplicationContextInitializer
Packages that use ApplicationContextInitializer
Package
Description
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.
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.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) Create a newMergedContextConfiguration
instance for the supplied parameters.MergedContextConfiguration
(Class<?> testClass, String[] locations, Class<?>[] classes, Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, String[] activeProfiles, String[] propertySourceLocations, String[] propertySourceProperties, 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.web
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) Create a newWebMergedContextConfiguration
instance for the supplied parameters.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) 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.