Class DelegatingSmartContextLoader
java.lang.Object
org.springframework.test.context.support.AbstractDelegatingSmartContextLoader
org.springframework.test.context.support.DelegatingSmartContextLoader
- All Implemented Interfaces:
AotContextLoader, ContextLoader, SmartContextLoader
DelegatingSmartContextLoader
is a concrete implementation of
AbstractDelegatingSmartContextLoader
that delegates to a
GenericXmlContextLoader
(or a GenericGroovyXmlContextLoader
if Groovy
is present in the classpath) and an AnnotationConfigContextLoader
.- Since:
- 3.1
- Author:
- Sam Brannen
- See Also:
-
Constructor Summary
Constructors -
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 AbstractDelegatingSmartContextLoader
loadContext, loadContextForAotProcessing, loadContextForAotProcessing, loadContextForAotRuntime, processContextConfiguration
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface SmartContextLoader
loadContext, processLocations
-
Constructor Details
-
DelegatingSmartContextLoader
public DelegatingSmartContextLoader()
-
-
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
-