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