Uses of Interface
org.springframework.context.ApplicationContextInitializer
Packages that use ApplicationContextInitializer Package Description org.springframework.test.context 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.org.springframework.test.context.junit.jupiter Core support for integrating the Spring TestContext Framework with the JUnit Jupiter extension model in JUnit 5.org.springframework.test.context.junit.jupiter.web Web support for integrating the Spring TestContext Framework with the JUnit Jupiter extension model in JUnit 5.org.springframework.test.context.web Web support classes for the Spring TestContext Framework.org.springframework.web.context Contains a variant of the application context interface for web applications, and the ContextLoaderListener that bootstraps a root web application context.org.springframework.web.servlet Provides servlets that integrate with the application context infrastructure, and the core interfaces and classes for the Spring web MVC framework.org.springframework.web.servlet.support 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 ApplicationContextInitializer Modifier and Type Method Description Set<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
.Class<? extends ApplicationContextInitializer<?>>[]
initializers()
The application context initializer classes to use for initializing aConfigurableApplicationContext
.Constructor parameters in org.springframework.test.context with type arguments of type ApplicationContextInitializer Constructor Description MergedContextConfiguration(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.junit.jupiter
Methods in org.springframework.test.context.junit.jupiter that return types with arguments of type ApplicationContextInitializer Modifier and Type Method Description Class<? extends ApplicationContextInitializer<?>>[]
initializers()
Alias forContextConfiguration.initializers()
.Uses of ApplicationContextInitializer in org.springframework.test.context.junit.jupiter.web
Methods in org.springframework.test.context.junit.jupiter.web that return types with arguments of type ApplicationContextInitializer Modifier and Type Method Description Class<? extends ApplicationContextInitializer<?>>[]
initializers()
Alias forContextConfiguration.initializers()
.Uses of ApplicationContextInitializer in org.springframework.test.context.web
Constructor parameters in org.springframework.test.context.web with type arguments of type ApplicationContextInitializer Constructor Description WebMergedContextConfiguration(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 ApplicationContextInitializer Modifier and Type Method Description protected 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 ApplicationContextInitializer Modifier and Type Method Description protected List<Class<ApplicationContextInitializer<ConfigurableApplicationContext>>>
ContextLoader. 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 ApplicationContextInitializer Modifier and Type Method Description void
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 ApplicationContextInitializer Modifier and Type Method Description void
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 ApplicationContextInitializer Modifier and Type Method Description protected ApplicationContextInitializer<?>[]
AbstractDispatcherServletInitializer. getServletApplicationContextInitializers()
Specify application context initializers to be applied to the servlet-specific application context that theDispatcherServlet
is being created with.