org.kuali.rice.core.impl.resourceloader
Class BaseWrappingResourceLoader

java.lang.Object
  extended by org.kuali.rice.core.api.lifecycle.BaseLifecycle
      extended by org.kuali.rice.core.api.resourceloader.ResourceLoaderContainer
          extended by org.kuali.rice.core.framework.resourceloader.BaseResourceLoader
              extended by 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)

Field Summary
 
Fields inherited from class org.kuali.rice.core.framework.resourceloader.BaseResourceLoader
LOG
 
Fields inherited from interface org.kuali.rice.core.api.resourceloader.ResourceLoader
EMBEDDED_CLIENT_APP_RESOURCE_LOADER, EMBEDDED_PLUGIN, KSB_CONFIGURER_CONTAINER_NAME, PLUGIN_REGISTRY_LOADER_NAME, RMI_PLUGIN, ROOT_RESOURCE_LOADER_NAME, WEB_SERVICE_PLUGIN
 
Constructor Summary
BaseWrappingResourceLoader(QName name)
           
BaseWrappingResourceLoader(QName name, ClassLoader classLoader)
           
BaseWrappingResourceLoader(QName name, ClassLoader classLoader, ServiceLocator serviceLocator)
           
BaseWrappingResourceLoader(QName name, ServiceLocator serviceLocator)
           
 
Method Summary
protected  void cacheService(QName serviceName, Object service)
           
protected  String[] getPackageNamesToFilter()
           
 Object getService(QName serviceName)
          Fetches the service with the given name.
protected  Object postProcessObject(ObjectDefinition definition, Object object)
           
protected  Object postProcessService(QName serviceName, Object service)
           
protected  boolean shouldCacheService(QName serviceName, Object service)
           
protected  boolean shouldWrapObject(ObjectDefinition definition, Object object)
           
protected  boolean shouldWrapService(QName serviceName, Object service)
           
 void start()
           
 
Methods inherited from class org.kuali.rice.core.framework.resourceloader.BaseResourceLoader
getClassLoader, getContents, getObject, getServiceLocator, isPostProcessContainer, setClassLoader, setPostProcessContainer, stop
 
Methods inherited from class org.kuali.rice.core.api.resourceloader.ResourceLoaderContainer
addResourceLoader, addResourceLoaderFirst, containsResourceLoader, getName, getResourceLoader, getResourceLoaderNames, getResourceLoaders, removeAllResourceLoaders, removeResourceLoader, setName, toString
 
Methods inherited from class org.kuali.rice.core.api.lifecycle.BaseLifecycle
isStarted, setStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.resourceloader.ResourceLoader
addResourceLoader, addResourceLoaderFirst, getName, getResourceLoader, getResourceLoaderNames, getResourceLoaders, removeResourceLoader, setName
 
Methods inherited from interface org.kuali.rice.core.api.lifecycle.Lifecycle
isStarted
 

Constructor Detail

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)
Method Detail

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.