org.kuali.rice.core.impl.resourceloader
Class SpringResourceLoader
java.lang.Object
org.kuali.rice.core.api.lifecycle.BaseLifecycle
org.kuali.rice.core.api.resourceloader.ResourceLoaderContainer
org.kuali.rice.core.framework.resourceloader.BaseResourceLoader
org.kuali.rice.core.impl.resourceloader.SpringResourceLoader
- All Implemented Interfaces:
- Lifecycle, ObjectLoader, ResourceLoader, ServiceLocator
public class SpringResourceLoader
- extends BaseResourceLoader
A simple ResourceLoader
which wraps a Spring ConfigurableApplicationContext
.
Starts and stops the ConfigurableApplicationContext
.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Methods inherited from class org.kuali.rice.core.api.resourceloader.ResourceLoaderContainer |
addResourceLoader, addResourceLoaderFirst, containsResourceLoader, getName, getResourceLoader, getResourceLoaderNames, getResourceLoaders, removeAllResourceLoaders, removeResourceLoader, setName, toString |
SpringResourceLoader
public SpringResourceLoader(QName name,
String fileLoc,
javax.servlet.ServletContext context)
SpringResourceLoader
public SpringResourceLoader(QName name,
List<String> fileLocs,
javax.servlet.ServletContext servletContextcontext)
getService
public Object getService(QName serviceName)
- Description copied from interface:
ServiceLocator
- Fetches the service with the given name.
- Specified by:
getService
in interface ServiceLocator
- Overrides:
getService
in class BaseResourceLoader
start
public void start()
throws Exception
- Specified by:
start
in interface Lifecycle
- Overrides:
start
in class BaseResourceLoader
- Throws:
Exception
stop
public void stop()
throws Exception
- Specified by:
stop
in interface Lifecycle
- Overrides:
stop
in class BaseResourceLoader
- Throws:
Exception
getContext
public org.springframework.context.ConfigurableApplicationContext getContext()
setParentContext
public void setParentContext(org.springframework.context.ApplicationContext parentContext)
setParentSpringResourceLoader
public void setParentSpringResourceLoader(SpringResourceLoader parentSpringResourceLoader)
getContents
public String getContents(String indent,
boolean servicePerLine)
- Specified by:
getContents
in interface ResourceLoader
- Specified by:
getContents
in interface ServiceLocator
- Overrides:
getContents
in class BaseResourceLoader
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.