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
WebDelegatingSmartContextLoaderis a concrete implementation ofAbstractDelegatingSmartContextLoaderthat delegates to aGenericXmlWebContextLoader(or aGenericGroovyXmlWebContextLoaderif 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 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
WebDelegatingSmartContextLoader
public WebDelegatingSmartContextLoader()
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