|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A configurator is responsible for the persistence and validation of configuration parameters.
Method Summary | |
ConfigParams |
getConfigParams()
Retrieve the parameters associcated with this configuration from the default location. |
ConfigParams |
load()
Retrieves the persisted parameters associated with this configuration from the standard location. |
boolean |
save()
Persist the parameters associated with this configuration to the standard location. |
void |
setConfigParams(ConfigParams cp)
Sets the parameters associated with this configuration object to the provided values. |
Method Detail |
public ConfigParams getConfigParams() throws ConfiguratorException
ConfiguratorException
- If there was a failure in retrieving the
parameters. This is normally a chained exception to the underlying
cause.public void setConfigParams(ConfigParams cp)
cp
- The parameters to be associated with this configuration.public ConfigParams load() throws ConfiguratorException
ConfiguratorException
- If there was a failure in retrieiving the
persisted parameters. This is normally a chained exception to the
underlying cause.public boolean save() throws ConfiguratorException
true
if the configuration was successfully saved
otherwise false
. If the parameters are not persisted then
false/code> is returned.
- Throws:
ConfiguratorException
- If there was a failure in persisting the
parameters. This is normally a chained exception to the underlying
cause.
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |