|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--jpos.config.DefaultCompositeRegPopulator
Default implementation of the CompositeRegPopulator interface
| Fields inherited from interface jpos.config.CompositeRegPopulator |
COMPOSITE_REG_POPULATOR_STRING |
| Constructor Summary | |
DefaultCompositeRegPopulator()
Creates a CompositePopulator with a null default populator NOTE: you must set the default populator before this is usable or call the load() method which will set the default populator from the multi-property in the jpos.properties file if that file exist |
|
DefaultCompositeRegPopulator(JposRegPopulator populator)
Creates a CompositePopulator with a default populator |
|
| Method Summary | |
void |
add(JposRegPopulator populator)
Adds this JposRegPopulator to the composite |
java.lang.String |
getClassName()
|
JposRegPopulator |
getDefaultPopulator()
|
java.util.Enumeration |
getEntries()
|
java.net.URL |
getEntriesURL()
|
java.lang.Exception |
getLastLoadException()
|
java.lang.String |
getName()
|
JposRegPopulator |
getPopulator(java.lang.String uniqueId)
|
java.util.Iterator |
getPopulators()
|
java.lang.String |
getUniqueId()
|
boolean |
isComposite()
|
void |
load()
Tell the populator to load the entries. |
void |
load(java.lang.String fileName)
Loads the entries specified in the fileName for the default populator |
void |
remove(JposRegPopulator populator)
Removes this JposRegPopulator from the composite |
void |
save(java.util.Enumeration entries)
Tell the populator to save the current entries |
void |
save(java.util.Enumeration entries,
java.lang.String fileName)
Tell the populator to save the current entries in the file specified using the default JposRegPopulator |
protected void |
setDefaultPopulator(JposRegPopulator populator)
Sets the default JposRegPopulator. |
int |
size()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public DefaultCompositeRegPopulator()
public DefaultCompositeRegPopulator(JposRegPopulator populator)
populator - the default populator for this composite| Method Detail |
protected void setDefaultPopulator(JposRegPopulator populator)
throws java.lang.IllegalArgumentException
populator - the JposRegPopulatorjava.lang.IllegalArgumentException - if the argument is null or not a valid JposRegPopulatorpublic java.lang.String getUniqueId()
getUniqueId in interface JposRegPopulatorpublic java.lang.String getClassName()
getClassName in interface JposRegPopulator
public void save(java.util.Enumeration entries)
throws java.lang.Exception
save in interface JposRegPopulatorentries - an enumeration of JposEntry objectsjava.lang.Exception - if any error occurs while saving
public void save(java.util.Enumeration entries,
java.lang.String fileName)
throws java.lang.Exception
save in interface JposRegPopulatorentries - an enumeration of JposEntry objectsfileName - the file name to save entriesjava.lang.Exception - if any error occurs while savingpublic void load()
load in interface JposRegPopulatorpublic void load(java.lang.String fileName)
load in interface JposRegPopulatorfileName - the entries file namepublic java.net.URL getEntriesURL()
getEntriesURL in interface JposRegPopulatorpublic java.util.Enumeration getEntries()
getEntries in interface JposRegPopulatorpublic boolean isComposite()
isComposite in interface JposRegPopulatorpublic java.lang.String getName()
getName in interface JposRegPopulatorpublic java.lang.Exception getLastLoadException()
getLastLoadException in interface JposRegPopulatorpublic java.lang.String toString()
toString in class java.lang.Objectpublic JposRegPopulator getDefaultPopulator()
getDefaultPopulator in interface CompositeRegPopulatorpublic void add(JposRegPopulator populator)
add in interface CompositeRegPopulatorpopulator - adds the populator to the composite reg populator. Does nothing
if the popualator already is in the compositepublic void remove(JposRegPopulator populator)
remove in interface CompositeRegPopulatorpopulator - removes the populator to the composite reg populatorpublic java.util.Iterator getPopulators()
getPopulators in interface CompositeRegPopulatorpublic JposRegPopulator getPopulator(java.lang.String uniqueId)
getPopulator in interface CompositeRegPopulatoruniqueId - the populator unique IDJposRegPopulator.getUniqueId()public int size()
size in interface CompositeRegPopulator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||