|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Configurator
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 |
---|
ConfigParams getConfigParams() throws ConfiguratorException
ConfiguratorException
- If there was a failure in retrieving the
parameters. This is normally a chained exception to the underlying
cause.void setConfigParams(ConfigParams cp)
cp
- The parameters to be associated with this configuration.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.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 |