public class RegistryManager
extends java.lang.Object
Constructor and Description |
---|
RegistryManager()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
void |
addRegistry(java.lang.String aRegistryName,
Registry aRegistryObj)
This method adds a registry.
|
void |
deleteRegistry(java.lang.String aRegistryName)
This method deletes a registry.
|
Registry |
getRegistry(java.lang.String aRegistryName)
This method gets a registry given by the registry name.
|
void |
initialize()
This method initializes the registry manager.
|
void |
initializeRegistryEntry(org.w3c.dom.Element node)
This method initializes a registry entry.
|
void |
initializeRegistryEntry(java.lang.String name,
Registry registry)
This method initializes a registry entry.
|
void |
initializeRegistryEntry(java.lang.String name,
java.lang.String className)
This method initializes a registry entry.
|
java.util.Enumeration |
list()
This method lists the cache of all the registries maintained by the registry manager.
|
void |
refresh(java.lang.String aRegistryName)
This method refreshes the cache information of the given registry.
|
void |
refreshAll()
This method refreshes the caches of all registries.
|
static RegistryManager |
singleton()
This method returns a singleton object of the registry manager.
|
void |
update(java.lang.String aRegistryName,
java.lang.String action,
java.lang.String strKey)
This method updates the cached information of a given registry element.
|
public RegistryManager()
public void addRegistry(java.lang.String aRegistryName, Registry aRegistryObj)
aRegistryName
- The name of the registry.aRegistryObj
- A Registry
object.public void deleteRegistry(java.lang.String aRegistryName)
aRegistryName
- The name of the registry to be deleted.public Registry getRegistry(java.lang.String aRegistryName)
aRegistryName
- A String
that represents the name of the registry.Registry
object.public 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 the registry.registry
- The Registry
object.java.lang.Exception
public void initializeRegistryEntry(java.lang.String name, java.lang.String className) throws java.lang.Exception
name
- The name of the registry.className
- The fully qualified class name of the registry.java.lang.Exception
public void initializeRegistryEntry(org.w3c.dom.Element node) throws java.lang.Exception
node
- A dom
node that defines the registry to be initialized.java.lang.Exception
public java.util.Enumeration list()
Enumeration
of all the registry names.public void refresh(java.lang.String aRegistryName) throws java.lang.Exception
aRegistryName
- The name of the registry to be refreshed.java.lang.Exception
public void refreshAll() throws java.lang.Exception
java.lang.Exception
public static RegistryManager singleton()
RegistryManager
singleton objectpublic void update(java.lang.String aRegistryName, java.lang.String action, java.lang.String strKey) throws java.lang.Exception
ItemUpdate
interface.aRegistryName
- The name of the registry to be updated.action
- The action to be performed on the element.strKey
- A String
representation of the cache key.java.lang.Exception