org.kuali.rice.core.impl.resourceloader
Class BaseWrappingResourceLoader
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.BaseWrappingResourceLoader
- All Implemented Interfaces:
- Lifecycle, ObjectLoader, ResourceLoader, ServiceLocator
- Direct Known Subclasses:
- CoreResourceLoader, Plugin
public class BaseWrappingResourceLoader
- extends BaseResourceLoader
A BaseResourceLoader implementation which wraps services with a Proxy that
switches the current context ClassLoader of the Thread.
- 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 |
BaseWrappingResourceLoader
public BaseWrappingResourceLoader(QName name,
ClassLoader classLoader,
ServiceLocator serviceLocator)
BaseWrappingResourceLoader
public BaseWrappingResourceLoader(QName name,
ClassLoader classLoader)
BaseWrappingResourceLoader
public BaseWrappingResourceLoader(QName name,
ServiceLocator serviceLocator)
BaseWrappingResourceLoader
public BaseWrappingResourceLoader(QName name)
start
public void start()
throws Exception
- Specified by:
start
in interface Lifecycle
- Overrides:
start
in class BaseResourceLoader
- Throws:
Exception
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
postProcessService
protected Object postProcessService(QName serviceName,
Object service)
- Overrides:
postProcessService
in class BaseResourceLoader
postProcessObject
protected Object postProcessObject(ObjectDefinition definition,
Object object)
- Overrides:
postProcessObject
in class BaseResourceLoader
cacheService
protected void cacheService(QName serviceName,
Object service)
getPackageNamesToFilter
protected String[] getPackageNamesToFilter()
shouldWrapService
protected boolean shouldWrapService(QName serviceName,
Object service)
shouldCacheService
protected boolean shouldCacheService(QName serviceName,
Object service)
shouldWrapObject
protected boolean shouldWrapObject(ObjectDefinition definition,
Object object)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.