internalInformationPort
Class Settings

java.lang.Object
  extended by internalInformationPort.Settings

final class Settings
extends java.lang.Object

Provides properties from the file Properties.txt.

Author:
Karl-Peter Fuchs

Field Summary
private static java.util.logging.Logger LOGGER
          Logger used to log and display information.
private static java.util.Properties properties
          Properties object to load values from.
 
Constructor Summary
private Settings()
          Empty constructor.
 
Method Summary
private static void addFurterProperties()
          Adds further properties to the Properties object, that can be calculated from existing properties and therefore shouldn't occur in the property file itself.
protected static java.util.Properties getProperties()
          Returns this Settings' Properties object.
protected static java.lang.String getProperty(java.lang.String key)
          Searches and returns the property with the specified key in the property object.
protected static java.lang.Object setProperty(java.lang.String key, java.lang.String value)
          Sets the property with the specified key in the property object to the bypassed value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

private static final java.util.logging.Logger LOGGER
Logger used to log and display information.


properties

private static java.util.Properties properties
Properties object to load values from.

Constructor Detail

Settings

private Settings()
Empty constructor. Never used since all methods are static.

Method Detail

getProperty

protected static java.lang.String getProperty(java.lang.String key)
Searches and returns the property with the specified key in the property object.

Parameters:
key - The property key.
Returns:
Property with the specified key in the property object.

setProperty

protected static java.lang.Object setProperty(java.lang.String key,
                                              java.lang.String value)
Sets the property with the specified key in the property object to the bypassed value.

Parameters:
key - The key to be placed into the property list.
value - The value corresponding to the key.
Returns:
The previous value of the specified key, or null if it did not have one.

getProperties

protected static java.util.Properties getProperties()
Returns this Settings' Properties object.

Returns:
This Settings' Properties object.

addFurterProperties

private static void addFurterProperties()
Adds further properties to the Properties object, that can be calculated from existing properties and therefore shouldn't occur in the property file itself.