at.knowcenter.wag.egov.egiz.cfg
Interface Settings

All Known Implementing Classes:
SettingsReader

public interface Settings

Defines an interface reading a configuration file.

Author:
wlackner

Method Summary
 String getSetting(String key)
          Search for a key in the configuration file.
 String getSetting(String key, String defaultValue)
          Search for a key in the configuration file.
 String getSetting(String primaryKey, String defaultKey, String defaultValue)
           
 

Method Detail

getSetting

String getSetting(String key)
                  throws SettingNotFoundException
Search for a key in the configuration file.

Parameters:
key - to search for
Returns:
the corresponding value
Throws:
SettingNotFoundException - if the key is not found

getSetting

String getSetting(String key,
                  String defaultValue)
Search for a key in the configuration file.

Parameters:
key - to search for
defaultValue - return this value if the key is not found
Returns:
the corresponding value

getSetting

String getSetting(String primaryKey,
                  String defaultKey,
                  String defaultValue)
Parameters:
primaryKey - to search for
defaultKey - to search for if the primaryKey is not found
defaultValue - return this value if the defaultKey is not found
Returns:
the corresponding value


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.