org.jboss.mx.util
Class PropertyAccess
java.lang.Object
org.jboss.mx.util.PropertyAccess
- public class PropertyAccess
- extends java.lang.Object
System property access utilties that encapsulate the
AccessController.doPrivileged calls required when running with a
security manager. Use to access system properties when the callers
permissions should not dictate whether or not access is allowed.
Method Summary |
static java.lang.String |
getProperty(java.lang.String name)
|
static java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
|
static java.lang.String |
setProperty(java.lang.String name,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyAccess
public PropertyAccess()
getProperty
public static java.lang.String getProperty(java.lang.String name)
getProperty
public static java.lang.String getProperty(java.lang.String name,
java.lang.String defaultValue)
setProperty
public static java.lang.String setProperty(java.lang.String name,
java.lang.String value)