com.ibm.commons.iloader.node
Class LoaderRegistry

java.lang.Object
  extended by com.ibm.commons.iloader.node.LoaderRegistry

public class LoaderRegistry
extends java.lang.Object

A registry of ILoaders. Loaders should be registered with this registry in order to reduce the need for creating a new loader each time one is needed. A single instance of the loader should be created and registered with this regisry.


Method Summary
static LoaderRegistry getInstance()
           
 ILoader getLoader(java.lang.String namespace)
          Returns an ILoader based on the namespace provided.
 void register(ILoader loader)
          Registers a loader in the registry.
 void unregister(ILoader loader)
          Removes the specified loader from the registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LoaderRegistry getInstance()

getLoader

public ILoader getLoader(java.lang.String namespace)
Returns an ILoader based on the namespace provided. com.ibm.commons.iloader.node.ILoader.handleNamespace(String) is used to determine if any of the registered loaders apply to the namespace.

Parameters:
namespace - the qualified name of the namespace
Returns:

register

public void register(ILoader loader)
Registers a loader in the registry.

Parameters:
loader -

unregister

public void unregister(ILoader loader)
Removes the specified loader from the registry.

Parameters:
loader -