|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
If service provider requires to load its configuration from persistent
storage it should provide an instance that implements this interface by
IServiceProvider.getConfiguration().
Higgins Registry uses returned instance to load service provider
configuration from persistent storage when service provider is registering in
the registry.
| Method Summary | |
|---|---|
String |
getProperty(String key)
Searches for the configuration property with the specified key in this configuration. |
String |
getProperty(String key,
String defaultValue)
Searches for the configuration property with the specified key in this configuration. |
Iterator |
getPropertyNames()
Provides set of configuration property names. |
void |
load(File config)
Loads configuration from the specified file. |
void |
save(File config)
Saves configuration to the specified file. |
| Method Detail |
public void load(File config)
config - the file to load configuration frompublic void save(File config)
config - the file to store configurationpublic Iterator getPropertyNames()
Iterable set of Stringspublic String getProperty(String key)
key - the property key
public String getProperty(String key,
String defaultValue)
defaultValue if the
property is not found.
key - the property keydefaultValue - a default value
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||