public class ResourceLoaderContainer extends BaseLifecycle implements ResourceLoader
ResourceLoader
which acts as a container for other ResourceLoaders.
Effectively, implements a composite pattern for ResourceLoaders.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 and Description |
---|
ResourceLoaderContainer(QName name) |
Modifier and Type | Method and Description |
---|---|
void |
addResourceLoader(ResourceLoader resourceLoader) |
void |
addResourceLoaderFirst(ResourceLoader resourceLoader) |
boolean |
containsResourceLoader(ResourceLoader resourceLoader) |
String |
getContents(String indent,
boolean servicePerLine) |
QName |
getName() |
Object |
getObject(ObjectDefinition definition)
Constructs an instance of the Object using the given ObjectDefinition classname.
|
ResourceLoader |
getResourceLoader(QName name) |
List<QName> |
getResourceLoaderNames() |
List<ResourceLoader> |
getResourceLoaders() |
Object |
getService(QName qname)
Fetches the service with the given name.
|
void |
removeAllResourceLoaders() |
void |
removeResourceLoader(QName name) |
void |
setName(QName name) |
void |
start() |
void |
stop() |
String |
toString() |
isStarted, setStarted
public ResourceLoaderContainer(QName name)
public void start() throws Exception
start
in interface Lifecycle
start
in class BaseLifecycle
Exception
public void stop() throws Exception
stop
in interface Lifecycle
stop
in class BaseLifecycle
Exception
public void addResourceLoader(ResourceLoader resourceLoader)
addResourceLoader
in interface ResourceLoader
public void addResourceLoaderFirst(ResourceLoader resourceLoader)
addResourceLoaderFirst
in interface ResourceLoader
public boolean containsResourceLoader(ResourceLoader resourceLoader)
public ResourceLoader getResourceLoader(QName name)
getResourceLoader
in interface ResourceLoader
public List<QName> getResourceLoaderNames()
getResourceLoaderNames
in interface ResourceLoader
public void removeAllResourceLoaders()
public void removeResourceLoader(QName name)
removeResourceLoader
in interface ResourceLoader
public List<ResourceLoader> getResourceLoaders()
getResourceLoaders
in interface ResourceLoader
public Object getObject(ObjectDefinition definition)
ObjectLoader
getObject
in interface ObjectLoader
public Object getService(QName qname)
ServiceLocator
getService
in interface ServiceLocator
public String getContents(String indent, boolean servicePerLine)
getContents
in interface ResourceLoader
getContents
in interface ServiceLocator
public QName getName()
getName
in interface ResourceLoader
public void setName(QName name)
setName
in interface ResourceLoader
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.