org.kuali.rice.kew.resourceloader
Class CoreResourceLoader

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
                  extended by org.kuali.rice.kew.resourceloader.CoreResourceLoader
All Implemented Interfaces:
Lifecycle, ObjectLoader, ResourceLoader, ServiceLocator

public class CoreResourceLoader
extends BaseWrappingResourceLoader

A resource loader which is responsible for loading resources from the Workflow ConfigContext.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
static QName NAME
           
 
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
CoreResourceLoader(ServiceLocator serviceLocator, PluginRegistry registry)
           
 
Method Summary
 Object getObject(ObjectDefinition objectDefinition)
          Constructs an instance of the Object using the given ObjectDefinition classname.
 PluginRegistry getRegistry()
           
 Object getService(QName serviceName)
          Overrides the standard getService method to looks for the service in the plugin if it can't find it in the core.
protected  boolean isRemoteService(QName serviceName)
          Returns true if the given service name is one which should be loaded from the service bus.
protected  boolean shouldWrapService(QName serviceName, Object service)
           
 void stop()
           
protected  boolean useRemoteEmailServices()
           
 
Methods inherited from class org.kuali.rice.core.impl.resourceloader.BaseWrappingResourceLoader
cacheService, getPackageNamesToFilter, postProcessObject, postProcessService, shouldCacheService, shouldWrapObject, start
 
Methods inherited from class org.kuali.rice.core.framework.resourceloader.BaseResourceLoader
getClassLoader, getContents, getServiceLocator, isPostProcessContainer, setClassLoader, setPostProcessContainer
 
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
 

Field Detail

NAME

public static final QName NAME
Constructor Detail

CoreResourceLoader

public CoreResourceLoader(ServiceLocator serviceLocator,
                          PluginRegistry registry)
Method Detail

getService

public Object getService(QName serviceName)
Overrides the standard getService method to looks for the service in the plugin if it can't find it in the core.

Specified by:
getService in interface ServiceLocator
Overrides:
getService in class BaseWrappingResourceLoader

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 BaseResourceLoader

shouldWrapService

protected boolean shouldWrapService(QName serviceName,
                                    Object service)
Overrides:
shouldWrapService in class BaseWrappingResourceLoader

stop

public void stop()
          throws Exception
Specified by:
stop in interface Lifecycle
Overrides:
stop in class BaseResourceLoader
Throws:
Exception

isRemoteService

protected boolean isRemoteService(QName serviceName)
Returns true if the given service name is one which should be loaded from the service bus. This is used primarily for embedded clients that want to reference the workgroup and user services on a standalone server.


useRemoteEmailServices

protected boolean useRemoteEmailServices()

getRegistry

public PluginRegistry getRegistry()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.