|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.registry.CommandRegistry
This is the CommandRegistry.
Field Summary | |
protected static java.util.Hashtable |
commandClCache
|
protected java.util.Hashtable |
commandsByStore
|
protected static CommandRegistry |
singleton
|
Fields inherited from interface com.ibm.commerce.registry.Registry |
COPYRIGHT |
Constructor Summary | |
CommandRegistry()
CommandRegistry constructor comment. |
Method Summary | |
void |
addElement(CommandRegistryEntry regEntry)
Adds a CommandRegistryEntry to the active cache. |
void |
addElement(CommandRegistryEntry regEntry,
java.util.Hashtable cache)
Adds a CommandRegistryEntry to the cache object. |
CommandRegistryEntry |
find(java.lang.String name,
java.lang.Integer storeId)
This method will lookup a command entry by command interface name and store id. |
java.lang.String |
getKey(java.lang.String name,
java.lang.Integer storeId)
Returns a key for search given an interface name and a store Id. |
void |
initialize()
Initialize the command registry. |
void |
refresh()
This method refreah the command registry from the database. |
void |
removeAllElements()
Removes all CommandRegistryEntries from the list. |
void |
removeElement(CommandRegistryEntry entry)
Removes an CommandRegistryEntry from the list. |
static CommandRegistry |
singleton()
This method returns a singleton object of the command registry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.util.Hashtable commandClCache
protected java.util.Hashtable commandsByStore
protected static CommandRegistry singleton
Constructor Detail |
public CommandRegistry()
Method Detail |
public void addElement(CommandRegistryEntry regEntry)
obj
- the CommandRegistryEntry to be added to the listpublic void addElement(CommandRegistryEntry regEntry, java.util.Hashtable cache)
obj
- the CommandRegistryEntry to be added to the cahce objectcache
- Hashtable - the cache objectpublic CommandRegistryEntry find(java.lang.String name, java.lang.Integer storeId)
name
- java.lang.String the interface name of the commandstoreId
- java.lang.Integer reference number of the storepublic java.lang.String getKey(java.lang.String name, java.lang.Integer storeId)
name
- String - command interface namestoreId
- Integer - store Id.public void initialize() throws java.lang.Exception
initialize
in interface Registry
java.lang.Exception
- public void refresh() throws java.lang.Exception
refresh
in interface Registry
java.lang.Exception
- public void removeAllElements()
public void removeElement(CommandRegistryEntry entry)
entry
- CommandRegistryEntry - entry to be removed to the listpublic static CommandRegistry singleton()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |