de.uni.leipzig.IR15.Support
Class Configuration

java.lang.Object
  extended by de.uni.leipzig.IR15.Support.Configuration

public class Configuration
extends java.lang.Object

Singleton class to load a properties file by filename and read properties by property name.

Author:
Robert 'robbl' Schulze

Method Summary
static Configuration getInstance(java.lang.String file)
          Returns a instance to the configuration file.
 java.lang.Integer getPropertyAsInteger(java.lang.String property)
          Get a integer property from the configuration.
 java.lang.String getPropertyAsString(java.lang.String property)
          Get a string property from the configuration.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPropertyAsInteger

public java.lang.Integer getPropertyAsInteger(java.lang.String property)
Get a integer property from the configuration.

Parameters:
property -
Returns:

getPropertyAsString

public java.lang.String getPropertyAsString(java.lang.String property)
Get a string property from the configuration.

Parameters:
property -
Returns:

getInstance

public static Configuration getInstance(java.lang.String file)
Returns a instance to the configuration file.

Parameters:
file -
Returns: