public class DelegatingSmartContextLoader extends AbstractDelegatingSmartContextLoader
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.SmartContextLoader,
AbstractDelegatingSmartContextLoader,
GenericXmlContextLoader,
GenericGroovyXmlContextLoader,
AnnotationConfigContextLoader| Modifier and Type | Field and Description |
|---|---|
private SmartContextLoader |
annotationConfigLoader |
private static java.lang.String |
GROOVY_XML_CONTEXT_LOADER_CLASS_NAME |
private static boolean |
groovyPresent |
private SmartContextLoader |
xmlLoader |
| Constructor and Description |
|---|
DelegatingSmartContextLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected SmartContextLoader |
getAnnotationConfigLoader()
Get the delegate
SmartContextLoader that supports annotated classes. |
protected SmartContextLoader |
getXmlLoader()
Get the delegate
SmartContextLoader that supports XML configuration
files and/or Groovy scripts. |
loadContext, loadContext, processContextConfiguration, processLocationsprivate static final java.lang.String GROOVY_XML_CONTEXT_LOADER_CLASS_NAME
private static final boolean groovyPresent
private final SmartContextLoader xmlLoader
private final SmartContextLoader annotationConfigLoader
protected SmartContextLoader getXmlLoader()
AbstractDelegatingSmartContextLoaderSmartContextLoader that supports XML configuration
files and/or Groovy scripts.getXmlLoader in class AbstractDelegatingSmartContextLoaderprotected SmartContextLoader getAnnotationConfigLoader()
AbstractDelegatingSmartContextLoaderSmartContextLoader that supports annotated classes.getAnnotationConfigLoader in class AbstractDelegatingSmartContextLoader