org.kuali.rice.core.api.resourceloader
Class ParentChildResourceLoader

java.lang.Object
  extended by org.kuali.rice.core.api.resourceloader.ParentChildResourceLoader
All Implemented Interfaces:
Lifecycle, ObjectLoader, ResourceLoader, ServiceLocator

 class ParentChildResourceLoader
extends Object
implements ResourceLoader

This is a description of what this class does - ewestfal don't forget to fill this in.

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

Field Summary
private  ResourceLoader child
           
private  QName name
           
private  ResourceLoader parent
           
 
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
ParentChildResourceLoader(ResourceLoader parent, ResourceLoader child)
           
 
Method Summary
 void addResourceLoader(ResourceLoader resourceLoader)
           
 void addResourceLoaderFirst(ResourceLoader resourceLoader)
           
 String getContents(String indent, boolean servicePerLine)
          This overridden method ...
 QName getName()
           
<T> T
getObject(ObjectDefinition definition)
          Constructs an instance of the Object using the given ObjectDefinition classname.
 ResourceLoader getResourceLoader(QName name)
           
 List<QName> getResourceLoaderNames()
           
 List<ResourceLoader> getResourceLoaders()
           
<T> T
getService(QName qname)
          Fetches the service with the given name.
 boolean isStarted()
          This overridden method ...
 void removeResourceLoader(QName name)
           
 void setName(QName name)
           
 void start()
          "Starts" this resource loader.
 void stop()
          Just stopes the internal child resource loader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

private final ResourceLoader parent

child

private final ResourceLoader child

name

private QName name
Constructor Detail

ParentChildResourceLoader

ParentChildResourceLoader(ResourceLoader parent,
                          ResourceLoader child)
Method Detail

getObject

public <T> T getObject(ObjectDefinition definition)
Description copied from interface: ObjectLoader
Constructs an instance of the Object using the given ObjectDefinition classname.

Specified by:
getObject in interface ObjectLoader

getService

public <T> T getService(QName qname)
Description copied from interface: ServiceLocator
Fetches the service with the given name.

Specified by:
getService in interface ServiceLocator

start

public void start()
           throws Exception
"Starts" this resource loader. When started, this method will simply invoke start on the child resource loader. It's assumed that the parent will be started from it's context.

Specified by:
start in interface Lifecycle
Throws:
Exception
See Also:
Lifecycle.start()

stop

public void stop()
          throws Exception
Just stopes the internal child resource loader.

Specified by:
stop in interface Lifecycle
Throws:
Exception
See Also:
Lifecycle.stop()

addResourceLoader

public void addResourceLoader(ResourceLoader resourceLoader)
Specified by:
addResourceLoader in interface ResourceLoader

addResourceLoaderFirst

public void addResourceLoaderFirst(ResourceLoader resourceLoader)
Specified by:
addResourceLoaderFirst in interface ResourceLoader

getResourceLoader

public ResourceLoader getResourceLoader(QName name)
Specified by:
getResourceLoader in interface ResourceLoader

getResourceLoaderNames

public List<QName> getResourceLoaderNames()
Specified by:
getResourceLoaderNames in interface ResourceLoader

getResourceLoaders

public List<ResourceLoader> getResourceLoaders()
Specified by:
getResourceLoaders in interface ResourceLoader

removeResourceLoader

public void removeResourceLoader(QName name)
Specified by:
removeResourceLoader in interface ResourceLoader

isStarted

public boolean isStarted()
This overridden method ...

Specified by:
isStarted in interface Lifecycle
See Also:
Lifecycle.isStarted()

setName

public void setName(QName name)
Specified by:
setName in interface ResourceLoader

getName

public QName getName()
Specified by:
getName in interface ResourceLoader

getContents

public String getContents(String indent,
                          boolean servicePerLine)
This overridden method ...

Specified by:
getContents in interface ResourceLoader
Specified by:
getContents in interface ServiceLocator
See Also:
ResourceLoader.getContents(java.lang.String, boolean)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.