|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jpos.config.simple.SimpleEntryRegistry
This is a simple implementation for the JposEntryRegistry using a Hashtable to collect the entries. The entry's logicalName property value is used as the key to the table and the entry itself as the value
Field Summary | |
java.util.Hashtable |
jposEntries
|
Constructor Summary | |
SimpleEntryRegistry()
Deprecated. no longer used, see the 1 argument ctor |
|
SimpleEntryRegistry(JposRegPopulator populator)
One-argument constructor |
Method Summary | |
void |
addJposEntry(JposEntry entry)
Add an JposEntry for the service. |
void |
addJposEntry(java.lang.String logicalName,
JposEntry entry)
Add an JposEntry for the service with logical name specified |
void |
addJposEntryRegistryListener(JposEntryRegistryListener l)
Adds a new JposEntryRegistryListener to the list of listeners |
protected void |
fireJposEntryRegistryEventAdded(JposEntryRegistryEvent e)
Fires a new JposEntryRegistry event when a new JposEntry is added |
protected void |
fireJposEntryRegistryEventModified(JposEntryRegistryEvent e)
Fires a new JposEntryRegistry event when a JposEntry is modified |
protected void |
fireJposEntryRegistryEventRemoved(JposEntryRegistryEvent e)
Fires a new JposEntryRegistry event when a new JposEntry is added |
java.util.Enumeration |
getEntries()
|
JposEntry |
getJposEntry(java.lang.String logicalName)
|
JposRegPopulator |
getRegPopulator()
|
int |
getSize()
|
boolean |
hasJposEntry(java.lang.String logicalName)
|
boolean |
isLoaded()
|
void |
load()
Loads the JposEntryRegistry using the current populator NOTE: if no entries are found or an error occurs then the registry is empty |
void |
modifyJposEntry(java.lang.String logicalName,
JposEntry newEntry)
Modify the JposEntry with logicalName with the new entry indicated |
void |
removeJposEntry(JposEntry entry)
Removes the specified JposEntry |
void |
removeJposEntry(java.lang.String logicalName)
Removes the JposEntry with the logicalName specified |
void |
removeJposEntryRegistryListener(JposEntryRegistryListener l)
Removes a new JposEntryRegistryListener to the list of listeners |
void |
save()
Tell the JposEntryRegistry to save the current entries NOTE: the actual implementation will save it in dependent manner |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
|
Field Detail |
public java.util.Hashtable jposEntries
Constructor Detail |
public SimpleEntryRegistry()
public SimpleEntryRegistry(JposRegPopulator populator)
populator
- the JposRegPopulator used by the registryMethod Detail |
public boolean hasJposEntry(java.lang.String logicalName)
hasJposEntry
in interface JposEntryRegistry
logicalName
- the logical name for the servicepublic java.util.Enumeration getEntries()
getEntries
in interface JposEntryRegistry
public JposEntry getJposEntry(java.lang.String logicalName)
getJposEntry
in interface JposEntryRegistry
logicalName
- the logical name of the JposEntry to findpublic void modifyJposEntry(java.lang.String logicalName, JposEntry newEntry)
modifyJposEntry
in interface JposEntryRegistry
logicalName
- the JposEntry's logical namenewEntry
- the new JposEntrypublic void addJposEntry(java.lang.String logicalName, JposEntry entry)
addJposEntry
in interface JposEntryRegistry
logicalName
- the logicalName of the servicepublic void addJposEntry(JposEntry entry)
addJposEntry
in interface JposEntryRegistry
entry
- the JposEntry to addJposEntry.getLogicalName()
public void removeJposEntry(JposEntry entry)
removeJposEntry
in interface JposEntryRegistry
entry
- the entry to removepublic void removeJposEntry(java.lang.String logicalName)
removeJposEntry
in interface JposEntryRegistry
logicalName
- the JposEntry's logical namepublic void addJposEntryRegistryListener(JposEntryRegistryListener l)
addJposEntryRegistryListener
in interface JposEntryRegistry
l
- the JposEntryRegistryListener objectpublic void removeJposEntryRegistryListener(JposEntryRegistryListener l)
removeJposEntryRegistryListener
in interface JposEntryRegistry
l
- the JposEntryRegistryListener objectpublic void save() throws java.lang.Exception
save
in interface JposEntryRegistry
java.lang.Exception
- if any error occurs while savingpublic JposRegPopulator getRegPopulator()
getRegPopulator
in interface JposEntryRegistry
public void load()
load
in interface JposEntryRegistry
public int getSize()
getSize
in interface JposEntryRegistry
public boolean isLoaded()
isLoaded
in interface JposEntryRegistry
public java.lang.String toString()
toString
in class java.lang.Object
protected void fireJposEntryRegistryEventAdded(JposEntryRegistryEvent e)
e
- the JposEntryRegistryEvent object to fireprotected void fireJposEntryRegistryEventRemoved(JposEntryRegistryEvent e)
e
- the JposEntryRegistryEvent object to fireprotected void fireJposEntryRegistryEventModified(JposEntryRegistryEvent e)
e
- the JposEntryRegistryEvent object to fire
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |