be.six.reports.util
Class Configuration

java.lang.Object
  extended by be.six.reports.util.Configuration

public class Configuration
extends java.lang.Object

Utility class to access configuration parameters

Author:
Joren Six

Nested Class Summary
static class Configuration.ConfigurationKey
          Defines a configuration key.
 
Constructor Summary
Configuration()
           
 
Method Summary
static java.lang.String get(Configuration.ConfigurationKey key)
          Read the configuration for a certain key.
static void set(Configuration.ConfigurationKey key, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration

public Configuration()
Method Detail

get

public static java.lang.String get(Configuration.ConfigurationKey key)
Read the configuration for a certain key. If the key can not be found in the UserPreferences the default is loaded from a properties file, written in the UserPreferences, and returned. Otherwise the configured value is returned.

Parameters:
key - the configuration key
Returns:
if the key is configured, the configured value. Otherwise the default value is returned.

set

public static void set(Configuration.ConfigurationKey key,
                       java.lang.String value)