abstract class ApplicationContextInitializerUtils
extends java.lang.Object
ApplicationContextInitializers
.
Although ApplicationContextInitializerUtils
was first introduced
in Spring Framework 4.1, the initial implementations of methods in this class
were based on the existing code base in ContextLoaderUtils
.
ContextConfiguration.initializers()
Constructor and Description |
---|
ApplicationContextInitializerUtils() |
Modifier and Type | Method and Description |
---|---|
(package private) static java.util.Set<java.lang.Class<? extends ApplicationContextInitializer<?>>> |
resolveInitializerClasses(java.util.List<ContextConfigurationAttributes> configAttributesList)
Resolve the set of merged
ApplicationContextInitializer classes for the
supplied list of ContextConfigurationAttributes . |
private static final Log logger
static java.util.Set<java.lang.Class<? extends ApplicationContextInitializer<?>>> resolveInitializerClasses(java.util.List<ContextConfigurationAttributes> configAttributesList)
ApplicationContextInitializer
classes for the
supplied list of ContextConfigurationAttributes
.
Note that the inheritInitializers
flag of @ContextConfiguration
will be taken into
consideration. Specifically, if the inheritInitializers
flag is set to
true
for a given level in the class hierarchy represented by the provided
configuration attributes, context initializer classes defined at the given level
will be merged with those defined in higher levels of the class hierarchy.
configAttributesList
- the list of configuration attributes to process; must
not be null
or empty; must be ordered bottom-up
(i.e., as if we were traversing up the class hierarchy)null
)