|
||||||||||
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 compositeMethod 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 JposRegPopulator
public java.lang.String getClassName()
getClassName
in interface JposRegPopulator
public void save(java.util.Enumeration entries) throws java.lang.Exception
save
in interface JposRegPopulator
entries
- an enumeration of JposEntry objectsjava.lang.Exception
- if any error occurs while savingpublic void save(java.util.Enumeration entries, java.lang.String fileName) throws java.lang.Exception
save
in interface JposRegPopulator
entries
- an enumeration of JposEntry objectsfileName
- the file name to save entriesjava.lang.Exception
- if any error occurs while savingpublic void load()
load
in interface JposRegPopulator
public void load(java.lang.String fileName)
load
in interface JposRegPopulator
fileName
- the entries file namepublic java.net.URL getEntriesURL()
getEntriesURL
in interface JposRegPopulator
public java.util.Enumeration getEntries()
getEntries
in interface JposRegPopulator
public boolean isComposite()
isComposite
in interface JposRegPopulator
public java.lang.String getName()
getName
in interface JposRegPopulator
public java.lang.Exception getLastLoadException()
getLastLoadException
in interface JposRegPopulator
public java.lang.String toString()
toString
in class java.lang.Object
public JposRegPopulator getDefaultPopulator()
getDefaultPopulator
in interface CompositeRegPopulator
public void add(JposRegPopulator populator)
add
in interface CompositeRegPopulator
populator
- 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 CompositeRegPopulator
populator
- removes the populator to the composite reg populatorpublic java.util.Iterator getPopulators()
getPopulators
in interface CompositeRegPopulator
public JposRegPopulator getPopulator(java.lang.String uniqueId)
getPopulator
in interface CompositeRegPopulator
uniqueId
- 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 |