consciouscode.util
Class SystemPropertiesBean
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemPropertiesBean
public SystemPropertiesBean()
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.