abstract class ActiveProfilesUtils
extends java.lang.Object
@ActiveProfiles
and
ActiveProfilesResolvers
.
Although ActiveProfilesUtils
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
.
ActiveProfiles
,
ActiveProfilesResolver
Modifier and Type | Field and Description |
---|---|
private static Log |
logger |
Modifier | Constructor and Description |
---|---|
private |
ActiveProfilesUtils() |
Modifier and Type | Method and Description |
---|---|
(package private) static java.lang.String[] |
resolveActiveProfiles(java.lang.Class<?> testClass)
Resolve active bean definition profiles for the supplied
Class . |
private static void |
validateActiveProfilesConfiguration(java.lang.Class<?> declaringClass,
AnnotationAttributes annAttrs) |
static java.lang.String[] resolveActiveProfiles(java.lang.Class<?> testClass)
Class
.
Note that the inheritProfiles
flag of
@ActiveProfiles
will be taken into consideration.
Specifically, if the inheritProfiles
flag is set to true
, profiles
defined in the test class will be merged with those defined in superclasses.
testClass
- the class for which to resolve the active profiles (must not be
null
)null
)ActiveProfiles
,
ActiveProfilesResolver
,
Profile
private static void validateActiveProfilesConfiguration(java.lang.Class<?> declaringClass, AnnotationAttributes annAttrs)