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
DelegatingSmartContextLoader
is a concrete implementation ofAbstractDelegatingSmartContextLoader
that delegates to aGenericXmlContextLoader
(or aGenericGroovyXmlContextLoader
if 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 SmartContextLoader
getAnnotationConfigLoader()
Get the delegateSmartContextLoader
that supports annotated classes.protected SmartContextLoader
getXmlLoader()
Get the delegateSmartContextLoader
that 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:AbstractDelegatingSmartContextLoader
Get the delegateSmartContextLoader
that supports XML configuration files and/or Groovy scripts.- Specified by:
getXmlLoader
in classAbstractDelegatingSmartContextLoader
getAnnotationConfigLoader
protected SmartContextLoader getAnnotationConfigLoader()
Description copied from class:AbstractDelegatingSmartContextLoader
Get the delegateSmartContextLoader
that supports annotated classes.- Specified by:
getAnnotationConfigLoader
in classAbstractDelegatingSmartContextLoader