java.lang.Object | +--com.ibm.commerce.registry.RegistryManager
The RegistryManager manages all the registered registries.
Field Summary | |
---|---|
protected
java.util.Hashtable |
registryMap |
Constructor Summary | |
---|---|
RegistryManager() Constructor for RegistryManager. |
Method Summary | |
---|---|
void |
addRegistry(java.lang.String aRegistryName,
Registry aRegistryObj) Adds a registry. |
void |
deleteRegistry(java.lang.String aRegistryName) Deletes a registry . |
Registry |
getRegistry(java.lang.String aRegistryName) Gets a registry given by the registry name. |
void |
initialize() Initializes the registry manager. |
void |
initializeRegistryEntry(org.w3c.dom.Element node) Initializes a registry entry. |
void |
initializeRegistryEntry(java.lang.String name,
Registry registry) Initializes a registry entry. |
void |
initializeRegistryEntry(java.lang.String name,
java.lang.String className) Initializes a registry entry. |
java.util.Enumeration |
list() Lists the cache of all the registries maintained by the registry manager. |
void |
refresh(java.lang.String aRegistryName) Refreshes cache information of the given registry. |
void |
refreshAll() Refreshes the cache of all registries. |
static
RegistryManager |
singleton() Returns a singleton object of the Registry Manager. |
void |
update(java.lang.String aRegistryName, java.lang.String action,
java.lang.String strKey) Updates the cached information of a given registry element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Hashtable registryMap
Constructor Detail |
---|
public RegistryManager()
Method Detail |
---|
public void addRegistry(java.lang.String aRegistryName, Registry aRegistryObj)
aRegistryName
- name of the registryaRegistryObj
- the Registry objectpublic void deleteRegistry(java.lang.String aRegistryName)
aRegistryName
- name of registry to be
deletedpublic Registry getRegistry(java.lang.String aRegistryName)
aRegistryName
- Stringpublic void initialize() throws java.lang.Exception
java.lang.Exception
public void initializeRegistryEntry(java.lang.String name, Registry registry) throws java.lang.Exception
name
- the name of registryregistry
- the registry objectjava.lang.Exception
public void initializeRegistryEntry(java.lang.String name, java.lang.String className) throws java.lang.Exception
name
- name of registryclassName
- fully qualified class name for the registryjava.lang.Exception
public void initializeRegistryEntry(org.w3c.dom.Element node) throws java.lang.Exception
node
- a dom node that defines the registry to be
initializedjava.lang.Exception
public java.util.Enumeration list()
public void refresh(java.lang.String aRegistryName) throws java.lang.Exception
aRegistryName
- name of registry to be refreshedjava.lang.Exception
public void refreshAll() throws java.lang.Exception
java.lang.Exception
public static RegistryManager singleton()
public void update(java.lang.String aRegistryName, java.lang.String action, java.lang.String strKey) throws java.lang.Exception
aRegistryName
- name of registry to be updatedaction
- action to be performed on the elementstrKey
- representation of the cache keyjava.lang.Exception