Class WebDelegatingSmartContextLoader
- java.lang.Object
- org.springframework.test.context.support.AbstractDelegatingSmartContextLoader
- org.springframework.test.context.web.WebDelegatingSmartContextLoader
- All Implemented Interfaces:
ContextLoader
,SmartContextLoader
public class WebDelegatingSmartContextLoader extends AbstractDelegatingSmartContextLoader
WebDelegatingSmartContextLoader
is a concrete implementation ofAbstractDelegatingSmartContextLoader
that delegates to aGenericXmlWebContextLoader
(or aGenericGroovyXmlWebContextLoader
if Groovy is present on the classpath) and anAnnotationConfigWebContextLoader
.- Since:
- 3.2
- Author:
- Sam Brannen
- See Also:
SmartContextLoader
,AbstractDelegatingSmartContextLoader
,GenericXmlWebContextLoader
,AnnotationConfigWebContextLoader
Constructor Summary
Constructors Constructor Description WebDelegatingSmartContextLoader()
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
WebDelegatingSmartContextLoader
public WebDelegatingSmartContextLoader()
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