Package org.springframework.test.context
Interface ActiveProfilesResolver
- All Known Implementing Classes:
DefaultActiveProfilesResolver
public interface ActiveProfilesResolver
Strategy interface for programmatically resolving which active bean definition profiles should be used when loading anApplicationContext
for a test class.A custom
ActiveProfilesResolver
can be registered via theresolver
attribute of@ActiveProfiles
.Concrete implementations must provide a
public
no-args constructor.- Since:
- 4.0
- Author:
- Sam Brannen, Michail Nikolaev
- See Also:
ActiveProfiles
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]
resolve(Class<?> testClass)
Resolve the bean definition profiles to use when loading anApplicationContext
for the given test class.
Method Detail
resolve
String[] resolve(Class<?> testClass)
Resolve the bean definition profiles to use when loading anApplicationContext
for the given test class.- Parameters:
testClass
- the test class for which the profiles should be resolved; nevernull
- Returns:
- the list of bean definition profiles to use when loading the
ApplicationContext
; nevernull
- See Also:
ActiveProfiles.resolver()
,ActiveProfiles.inheritProfiles()