Class WebDelegatingSmartContextLoader
java.lang.Object
org.springframework.test.context.support.AbstractDelegatingSmartContextLoader
org.springframework.test.context.web.WebDelegatingSmartContextLoader
- All Implemented Interfaces:
ContextLoader
,SmartContextLoader
WebDelegatingSmartContextLoader
is a concrete implementation of
AbstractDelegatingSmartContextLoader
that delegates to a
GenericXmlWebContextLoader
(or a GenericGroovyXmlWebContextLoader
if
Groovy is present on the classpath) and an AnnotationConfigWebContextLoader
.- Since:
- 3.2
- Author:
- Sam Brannen
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected SmartContextLoader
Get the delegateSmartContextLoader
that supports annotated classes.protected SmartContextLoader
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 Details
-
WebDelegatingSmartContextLoader
public WebDelegatingSmartContextLoader()
-
-
Method Details
-
getXmlLoader
Description copied from class:AbstractDelegatingSmartContextLoader
Get the delegateSmartContextLoader
that supports XML configuration files and/or Groovy scripts.- Specified by:
getXmlLoader
in classAbstractDelegatingSmartContextLoader
-
getAnnotationConfigLoader
Description copied from class:AbstractDelegatingSmartContextLoader
Get the delegateSmartContextLoader
that supports annotated classes.- Specified by:
getAnnotationConfigLoader
in classAbstractDelegatingSmartContextLoader
-