Class DelegatingSmartContextLoader
- java.lang.Object
- org.springframework.test.context.support.AbstractDelegatingSmartContextLoader
- org.springframework.test.context.support.DelegatingSmartContextLoader
- All Implemented Interfaces:
ContextLoader,SmartContextLoader
public class DelegatingSmartContextLoader extends AbstractDelegatingSmartContextLoader
DelegatingSmartContextLoaderis a concrete implementation ofAbstractDelegatingSmartContextLoaderthat delegates to aGenericXmlContextLoader(or aGenericGroovyXmlContextLoaderif Groovy is present in the classpath) and anAnnotationConfigContextLoader.- Since:
- 3.1
- Author:
- Sam Brannen
- See Also:
SmartContextLoader,AbstractDelegatingSmartContextLoader,GenericXmlContextLoader,GenericGroovyXmlContextLoader,AnnotationConfigContextLoader
Constructor Summary
Constructors Constructor Description DelegatingSmartContextLoader()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SmartContextLoadergetAnnotationConfigLoader()Get the delegateSmartContextLoaderthat supports annotated classes.protected SmartContextLoadergetXmlLoader()Get the delegateSmartContextLoaderthat supports XML configuration files and/or Groovy scripts.Methods inherited from class org.springframework.test.context.support.AbstractDelegatingSmartContextLoader
loadContext, loadContext, processContextConfiguration, processLocations
Constructor Detail
DelegatingSmartContextLoader
public DelegatingSmartContextLoader()
Method Detail
getXmlLoader
protected SmartContextLoader getXmlLoader()
Description copied from class:AbstractDelegatingSmartContextLoaderGet the delegateSmartContextLoaderthat supports XML configuration files and/or Groovy scripts.- Specified by:
getXmlLoaderin classAbstractDelegatingSmartContextLoader
getAnnotationConfigLoader
protected SmartContextLoader getAnnotationConfigLoader()
Description copied from class:AbstractDelegatingSmartContextLoaderGet the delegateSmartContextLoaderthat supports annotated classes.- Specified by:
getAnnotationConfigLoaderin classAbstractDelegatingSmartContextLoader