org.kuali.rice.core.resourceloader
Class BaseResourceLoader
java.lang.Object
org.kuali.rice.core.lifecycle.BaseLifecycle
org.kuali.rice.core.resourceloader.ResourceLoaderContainer
org.kuali.rice.core.resourceloader.BaseResourceLoader
- All Implemented Interfaces:
- Lifecycle, ObjectLoader, ResourceLoader, ServiceLocator
- Direct Known Subclasses:
- BaseWrappingResourceLoader, BeanFactoryResourceLoader, ParentChildResourceLoader, SpringBeanFactoryResourceLoader, SpringResourceLoader, ThinClientResourceLoader
public class BaseResourceLoader
- extends ResourceLoaderContainer
- implements ResourceLoader
A simple ResourceLoader implementation which will load objects from the
specified classloader and also locate services in an optional ServiceLocator.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
| Methods inherited from class org.kuali.rice.core.resourceloader.ResourceLoaderContainer |
addResourceLoader, addResourceLoaderFirst, containsResourceLoader, getName, getResourceLoader, getResourceLoaderNames, getResourceLoaders, removeAllResourceLoaders, removeResourceLoader, setName, toString |
LOG
static final org.apache.log4j.Logger LOG
serviceLocator
private ServiceLocator serviceLocator
classLoader
private ClassLoader classLoader
postProcessContainer
private boolean postProcessContainer
BaseResourceLoader
public BaseResourceLoader(QName name,
ClassLoader classLoader)
BaseResourceLoader
public BaseResourceLoader(QName name)
BaseResourceLoader
public BaseResourceLoader(QName name,
ServiceLocator serviceLocator)
BaseResourceLoader
public BaseResourceLoader(QName name,
ClassLoader classLoader,
ServiceLocator serviceLocator)
getObject
public Object getObject(ObjectDefinition objectDefinition)
- Description copied from interface:
ObjectLoader
- Constructs an instance of the Object using the given ObjectDefinition classname.
- Specified by:
getObject in interface ObjectLoader- Overrides:
getObject in class ResourceLoaderContainer
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 ResourceLoaderContainer
start
public void start()
throws Exception
- Specified by:
start in interface Lifecycle- Overrides:
start in class ResourceLoaderContainer
- Throws:
Exception
stop
public void stop()
throws Exception
- Specified by:
stop in interface Lifecycle- Overrides:
stop in class ResourceLoaderContainer
- Throws:
Exception
getClassLoader
public ClassLoader getClassLoader()
setClassLoader
public void setClassLoader(ClassLoader classLoader)
postProcessObject
protected Object postProcessObject(ObjectDefinition definition,
Object object)
postProcessService
protected Object postProcessService(QName serviceName,
Object service)
isPostProcessContainer
public boolean isPostProcessContainer()
setPostProcessContainer
public void setPostProcessContainer(boolean postProcessContainer)
wrap
protected Object wrap(QName serviceName,
Object service)
- Deprecated. use
postProcessService(QName, Object) instead
getContents
public String getContents(String indent,
boolean servicePerLine)
- Specified by:
getContents in interface ResourceLoader- Specified by:
getContents in interface ServiceLocator- Overrides:
getContents in class ResourceLoaderContainer
getMemStatus
private String getMemStatus()
dumpMemory
private String dumpMemory()
getServiceLocator
public ServiceLocator getServiceLocator()
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.