接口的使用
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中的类 修饰符和类型 类 说明 classAbstractContextLoaderAbstract application context loader that provides a basis for all concrete implementations of theContextLoaderSPI.classAbstractDelegatingSmartContextLoaderAbstractDelegatingSmartContextLoaderserves as an abstract base class for implementations of theSmartContextLoaderSPI 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.classAbstractGenericContextLoaderAbstract, generic extension ofAbstractContextLoaderthat loads aGenericApplicationContext.classAnnotationConfigContextLoaderConcrete implementation ofAbstractGenericContextLoaderthat loads bean definitions from component classes.classDelegatingSmartContextLoaderDelegatingSmartContextLoaderis a concrete implementation ofAbstractDelegatingSmartContextLoaderthat delegates to aGenericXmlContextLoader(or aGenericGroovyXmlContextLoaderif Groovy is present in the classpath) and anAnnotationConfigContextLoader.classGenericGroovyXmlContextLoaderConcrete implementation ofAbstractGenericContextLoaderthat reads bean definitions from Groovy scripts and XML configuration files.classGenericPropertiesContextLoaderConcrete implementation ofAbstractGenericContextLoaderthat reads bean definitions from JavaPropertiesresources.classGenericXmlContextLoaderConcrete implementation ofAbstractGenericContextLoaderthat reads bean definitions from XML resources.返回SmartContextLoader的org.springframework.test.context.support中的方法 修饰符和类型 方法 说明 protected abstract SmartContextLoaderAbstractDelegatingSmartContextLoader. getAnnotationConfigLoader()Get the delegateSmartContextLoaderthat supports annotated classes.protected SmartContextLoaderDelegatingSmartContextLoader. getAnnotationConfigLoader()protected abstract SmartContextLoaderAbstractDelegatingSmartContextLoader. getXmlLoader()Get the delegateSmartContextLoaderthat supports XML configuration files and/or Groovy scripts.protected SmartContextLoaderDelegatingSmartContextLoader. getXmlLoader()org.springframework.test.context.web中SmartContextLoader的使用
实现SmartContextLoader的org.springframework.test.context.web中的类 修饰符和类型 类 说明 classAbstractGenericWebContextLoaderAbstract, generic extension ofAbstractContextLoaderthat loads aGenericWebApplicationContext.classAnnotationConfigWebContextLoaderConcrete implementation ofAbstractGenericWebContextLoaderthat loads bean definitions from annotated classes.classGenericGroovyXmlWebContextLoaderConcrete implementation ofAbstractGenericWebContextLoaderthat loads bean definitions from Groovy scripts and XML configuration files.classGenericXmlWebContextLoaderConcrete implementation ofAbstractGenericWebContextLoaderthat loads bean definitions from XML resources.classWebDelegatingSmartContextLoaderWebDelegatingSmartContextLoaderis a concrete implementation ofAbstractDelegatingSmartContextLoaderthat delegates to aGenericXmlWebContextLoader(or aGenericGroovyXmlWebContextLoaderif Groovy is present on the classpath) and anAnnotationConfigWebContextLoader.返回SmartContextLoader的org.springframework.test.context.web中的方法 修饰符和类型 方法 说明 protected SmartContextLoaderWebDelegatingSmartContextLoader. getAnnotationConfigLoader()protected SmartContextLoaderWebDelegatingSmartContextLoader. getXmlLoader()