|
||||||||||
| 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 registry| Method Detail |
public boolean hasJposEntry(java.lang.String logicalName)
hasJposEntry in interface JposEntryRegistrylogicalName - the logical name for the servicepublic java.util.Enumeration getEntries()
getEntries in interface JposEntryRegistrypublic JposEntry getJposEntry(java.lang.String logicalName)
getJposEntry in interface JposEntryRegistrylogicalName - the logical name of the JposEntry to find
public void modifyJposEntry(java.lang.String logicalName,
JposEntry newEntry)
modifyJposEntry in interface JposEntryRegistrylogicalName - the JposEntry's logical namenewEntry - the new JposEntry
public void addJposEntry(java.lang.String logicalName,
JposEntry entry)
addJposEntry in interface JposEntryRegistrylogicalName - the logicalName of the servicepublic void addJposEntry(JposEntry entry)
addJposEntry in interface JposEntryRegistryentry - the JposEntry to addJposEntry.getLogicalName()public void removeJposEntry(JposEntry entry)
removeJposEntry in interface JposEntryRegistryentry - the entry to removepublic void removeJposEntry(java.lang.String logicalName)
removeJposEntry in interface JposEntryRegistrylogicalName - the JposEntry's logical namepublic void addJposEntryRegistryListener(JposEntryRegistryListener l)
addJposEntryRegistryListener in interface JposEntryRegistryl - the JposEntryRegistryListener objectpublic void removeJposEntryRegistryListener(JposEntryRegistryListener l)
removeJposEntryRegistryListener in interface JposEntryRegistryl - the JposEntryRegistryListener object
public void save()
throws java.lang.Exception
save in interface JposEntryRegistryjava.lang.Exception - if any error occurs while savingpublic JposRegPopulator getRegPopulator()
getRegPopulator in interface JposEntryRegistrypublic void load()
load in interface JposEntryRegistrypublic int getSize()
getSize in interface JposEntryRegistrypublic boolean isLoaded()
isLoaded in interface JposEntryRegistrypublic java.lang.String toString()
toString in class java.lang.Objectprotected 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 | |||||||||