Class DefaultBootstrapContext
java.lang.Object
org.springframework.test.context.support.DefaultBootstrapContext
- All Implemented Interfaces:
- BootstrapContext
Default implementation of the 
BootstrapContext interface.- Since:
- 4.1
- Author:
- Sam Brannen
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultBootstrapContext(Class<?> testClass, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate) Construct a newDefaultBootstrapContextfrom the supplied arguments.
- 
Method SummaryModifier and TypeMethodDescriptionGet theCacheAwareContextLoaderDelegateto use for transparent interaction with theContextCache.Class<?>Get the test class for this bootstrap context.toString()Provide a String representation of this bootstrap context's state.
- 
Constructor Details- 
DefaultBootstrapContextpublic DefaultBootstrapContext(Class<?> testClass, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate) Construct a newDefaultBootstrapContextfrom the supplied arguments.- Parameters:
- testClass- the test class for this bootstrap context; never- null
- cacheAwareContextLoaderDelegate- the context loader delegate to use for transparent interaction with the- ContextCache; never- null
 
 
- 
- 
Method Details- 
getTestClassGet the test class for this bootstrap context.- Specified by:
- getTestClassin interface- BootstrapContext
- Returns:
- the test class (never null)
 
- 
getCacheAwareContextLoaderDelegateGet theCacheAwareContextLoaderDelegateto use for transparent interaction with theContextCache.- Specified by:
- getCacheAwareContextLoaderDelegatein interface- BootstrapContext
- Returns:
- the context loader delegate (never null)
 
- 
toStringProvide a String representation of this bootstrap context's state.
 
-