类 DefaultBootstrapContext
- java.lang.Object
- org.springframework.test.context.support.DefaultBootstrapContext
- 所有已实现的接口:
BootstrapContext
public class DefaultBootstrapContext extends Object implements BootstrapContext
Default implementation of theBootstrapContextinterface.- 从以下版本开始:
- 4.1
- 作者:
- Sam Brannen
构造器概要
构造器 构造器 说明 DefaultBootstrapContext(Class<?> testClass, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate)Construct a newDefaultBootstrapContextfrom the supplied arguments.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 CacheAwareContextLoaderDelegategetCacheAwareContextLoaderDelegate()Get theCacheAwareContextLoaderDelegateto use for transparent interaction with theContextCache.Class<?>getTestClass()Get the test class for this bootstrap context.StringtoString()Provide a String representation of this bootstrap context's state.
构造器详细资料
DefaultBootstrapContext
public DefaultBootstrapContext(Class<?> testClass, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate)
Construct a newDefaultBootstrapContextfrom the supplied arguments.- 参数:
testClass- the test class for this bootstrap context; nevernullcacheAwareContextLoaderDelegate- the context loader delegate to use for transparent interaction with theContextCache; nevernull
方法详细资料
getTestClass
public Class<?> getTestClass()
Get the test class for this bootstrap context.- 指定者:
getTestClass在接口中BootstrapContext- 返回:
- the test class (never
null)
getCacheAwareContextLoaderDelegate
public CacheAwareContextLoaderDelegate getCacheAwareContextLoaderDelegate()
Get theCacheAwareContextLoaderDelegateto use for transparent interaction with theContextCache.- 指定者:
getCacheAwareContextLoaderDelegate在接口中BootstrapContext- 返回:
- the context loader delegate (never
null)