org.kuali.rice.core.framework.resourceloader
Class BeanFactoryResourceLoader

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.framework.resourceloader.BeanFactoryResourceLoader
All Implemented Interfaces:
Lifecycle, ObjectLoader, ResourceLoader, ServiceLocator

public class BeanFactoryResourceLoader
extends BaseResourceLoader

Wraps a BeanFactory as a ResourceLoader. Does not start or stop the BeanFactory. Assumes this is being done by the application that started it.

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
BeanFactoryResourceLoader(QName name, org.springframework.beans.factory.BeanFactory beanFactory)
           
BeanFactoryResourceLoader(QName name, org.springframework.beans.factory.BeanFactory beanFactory, Set<String> beanNames)
           
 
Method Summary
 Object getService(QName serviceName)
          Fetches the service with the given name.
protected  String translateBeanName(QName serviceName)
           
 
Methods inherited from class org.kuali.rice.core.framework.resourceloader.BaseResourceLoader
getClassLoader, getContents, getObject, getServiceLocator, isPostProcessContainer, postProcessObject, postProcessService, setClassLoader, setPostProcessContainer, start, 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

BeanFactoryResourceLoader

public BeanFactoryResourceLoader(QName name,
                                 org.springframework.beans.factory.BeanFactory beanFactory)

BeanFactoryResourceLoader

public BeanFactoryResourceLoader(QName name,
                                 org.springframework.beans.factory.BeanFactory beanFactory,
                                 Set<String> beanNames)
Method Detail

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

translateBeanName

protected String translateBeanName(QName serviceName)


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