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 anApplicationContextfor a test class.A custom
ActiveProfilesResolvercan be registered via theresolverattribute of@ActiveProfiles.Concrete implementations must provide a
publicno-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 anApplicationContextfor the given test class.
Method Detail
resolve
String[] resolve(Class<?> testClass)
Resolve the bean definition profiles to use when loading anApplicationContextfor 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()