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 Summary
ConstructorsConstructorDescriptionDefaultBootstrapContext(Class<?> testClass, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate) Construct a newDefaultBootstrapContextfrom the supplied arguments. -
Method Summary
Modifier 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
-
DefaultBootstrapContext
public DefaultBootstrapContext(Class<?> testClass, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate) Construct a newDefaultBootstrapContextfrom the supplied arguments.- Parameters:
testClass- the test class for this bootstrap context; nevernullcacheAwareContextLoaderDelegate- the context loader delegate to use for transparent interaction with theContextCache; nevernull
-
-
Method Details
-
getTestClass
Get the test class for this bootstrap context.- Specified by:
getTestClassin interfaceBootstrapContext- Returns:
- the test class (never
null)
-
getCacheAwareContextLoaderDelegate
Get theCacheAwareContextLoaderDelegateto use for transparent interaction with theContextCache.- Specified by:
getCacheAwareContextLoaderDelegatein interfaceBootstrapContext- Returns:
- the context loader delegate (never
null)
-
toString
Provide a String representation of this bootstrap context's state.
-