接口的使用
org.springframework.test.context.SmartContextLoader
使用SmartContextLoader的程序包 程序包 说明 org.springframework.test.context.support Support classes for the Spring TestContext Framework.org.springframework.test.context.web Web support classes for the Spring TestContext Framework.org.springframework.test.context.support中SmartContextLoader的使用
实现SmartContextLoader的org.springframework.test.context.support中的类 修饰符和类型 类 说明 class
AbstractContextLoader
Abstract application context loader that provides a basis for all concrete implementations of theContextLoader
SPI.class
AbstractDelegatingSmartContextLoader
AbstractDelegatingSmartContextLoader
serves as an abstract base class for implementations of theSmartContextLoader
SPI that delegate to a set of candidate SmartContextLoaders (i.e., one that supports XML configuration files or Groovy scripts and one that supports annotated classes) to determine which context loader is appropriate for a given test class's configuration.class
AbstractGenericContextLoader
Abstract, generic extension ofAbstractContextLoader
that loads aGenericApplicationContext
.class
AnnotationConfigContextLoader
Concrete implementation ofAbstractGenericContextLoader
that loads bean definitions from component classes.class
DelegatingSmartContextLoader
DelegatingSmartContextLoader
is a concrete implementation ofAbstractDelegatingSmartContextLoader
that delegates to aGenericXmlContextLoader
(or aGenericGroovyXmlContextLoader
if Groovy is present in the classpath) and anAnnotationConfigContextLoader
.class
GenericGroovyXmlContextLoader
Concrete implementation ofAbstractGenericContextLoader
that reads bean definitions from Groovy scripts and XML configuration files.class
GenericPropertiesContextLoader
Concrete implementation ofAbstractGenericContextLoader
that reads bean definitions from JavaProperties
resources.class
GenericXmlContextLoader
Concrete implementation ofAbstractGenericContextLoader
that reads bean definitions from XML resources.返回SmartContextLoader的org.springframework.test.context.support中的方法 修饰符和类型 方法 说明 protected abstract SmartContextLoader
AbstractDelegatingSmartContextLoader. getAnnotationConfigLoader()
Get the delegateSmartContextLoader
that supports annotated classes.protected SmartContextLoader
DelegatingSmartContextLoader. getAnnotationConfigLoader()
protected abstract SmartContextLoader
AbstractDelegatingSmartContextLoader. getXmlLoader()
Get the delegateSmartContextLoader
that supports XML configuration files and/or Groovy scripts.protected SmartContextLoader
DelegatingSmartContextLoader. getXmlLoader()
org.springframework.test.context.web中SmartContextLoader的使用
实现SmartContextLoader的org.springframework.test.context.web中的类 修饰符和类型 类 说明 class
AbstractGenericWebContextLoader
Abstract, generic extension ofAbstractContextLoader
that loads aGenericWebApplicationContext
.class
AnnotationConfigWebContextLoader
Concrete implementation ofAbstractGenericWebContextLoader
that loads bean definitions from annotated classes.class
GenericGroovyXmlWebContextLoader
Concrete implementation ofAbstractGenericWebContextLoader
that loads bean definitions from Groovy scripts and XML configuration files.class
GenericXmlWebContextLoader
Concrete implementation ofAbstractGenericWebContextLoader
that loads bean definitions from XML resources.class
WebDelegatingSmartContextLoader
WebDelegatingSmartContextLoader
is a concrete implementation ofAbstractDelegatingSmartContextLoader
that delegates to aGenericXmlWebContextLoader
(or aGenericGroovyXmlWebContextLoader
if Groovy is present on the classpath) and anAnnotationConfigWebContextLoader
.返回SmartContextLoader的org.springframework.test.context.web中的方法 修饰符和类型 方法 说明 protected SmartContextLoader
WebDelegatingSmartContextLoader. getAnnotationConfigLoader()
protected SmartContextLoader
WebDelegatingSmartContextLoader. getXmlLoader()