org.eclipse.higgins.registry
Interface IConfiguration

All Known Implementing Classes:
MapConfiguraton, PropertiesConfiguration

public interface IConfiguration

Higgins Registry uses returned instance to load service provider configuration from persistent storage.


Method Summary
 Object getProperty(String key)
          Searches for the configuration property with the specified key in this configuration.
 Object getProperty(String key, Object defaultValue)
          Searches for the configuration property with the specified key in this configuration.
 Iterator getPropertyNames()
          Provides set of configuration property names.
 void save()
           
 void setProperty(String key, Object property)
           
 

Method Detail

save

void save()
          throws RegistryConfigurationException
Throws:
RegistryConfigurationException

getPropertyNames

Iterator getPropertyNames()
Provides set of configuration property names.

Returns:
an Iterable set of Strings

getProperty

Object getProperty(String key)
Searches for the configuration property with the specified key in this configuration. The method returns null if the property is not found.

Parameters:
key - the property key
Returns:
the value in this configuration with the specified key value
Throws:
RegistryConfigurationException

getProperty

Object getProperty(String key,
                   Object defaultValue)
Searches for the configuration property with the specified key in this configuration. The method returns defaultValue if the property is not found.

Parameters:
key - the property key
defaultValue - a default value
Returns:
the value in this configuration with the specified key value
Throws:
RegistryConfigurationException

setProperty

void setProperty(String key,
                 Object property)
                 throws RegistryConfigurationException
Parameters:
key -
property -
Throws:
RegistryConfigurationException