consciouscode.util
Class SystemPropertiesBean

java.lang.Object
  extended by consciouscode.util.SystemPropertiesBean

public class SystemPropertiesBean
extends Object

A simple wrapper around System.getProperties to allow access from a real instance instead of a static method.


Constructor Summary
SystemPropertiesBean()
           
 
Method Summary
 String getProperty(String key)
           
 String getProperty(String key, String def)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemPropertiesBean

public SystemPropertiesBean()
Method Detail

getProperty

public String getProperty(String key)
Parameters:
key - the name of the system property.
Returns:
the string value of the system property, or null if there is no property with that key.
See Also:
System.getProperty(String)

getProperty

public String getProperty(String key,
                          String def)
Parameters:
key - the name of the system property.
def - a default value.
Returns:
the string value of the system property, or def if there is no property with that key.
See Also:
System.getProperty(String,String)


Copyright © 2001–2012 Todd V. Jonker. All Rights Reserved.