net.sf.springlayout.util
Class SpringLayoutConfiguration

java.lang.Object
  extended by net.sf.springlayout.util.SpringLayoutConfiguration

public class SpringLayoutConfiguration
extends java.lang.Object

Singleton wrapper for the application's properties file

Author:
Adam Boas Created on Jun 20, 2005

Method Summary
static SpringLayoutConfiguration getInstance()
           
 java.lang.String[] getProperties()
           
 java.lang.String getProperty(java.lang.String key)
          Gets the property held by the current properties object associated with the given key
 void setProperty(java.lang.String key, java.lang.String value)
          Adds a key value pair to the current properties object used by this config object
 void writeProperty(java.lang.String key, java.lang.String value)
          Writes a key value pair to the current properties file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SpringLayoutConfiguration getInstance()
Returns:
this SpringLayoutConfiguration object

getProperty

public java.lang.String getProperty(java.lang.String key)
Gets the property held by the current properties object associated with the given key

Parameters:
key -
Returns:
property value associated with the given key

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)
Adds a key value pair to the current properties object used by this config object

Parameters:
key -
value -

writeProperty

public void writeProperty(java.lang.String key,
                          java.lang.String value)
                   throws java.io.IOException
Writes a key value pair to the current properties file

Parameters:
key -
value -
Throws:
java.io.IOException

getProperties

public java.lang.String[] getProperties()
Returns:
all properties in this configurations's properties file


Copyright © 2005-2007 Spring Layout Team. All Rights Reserved.