public final class SystemPropertyValue extends java.lang.Object implements Value<java.lang.String>, java.security.PrivilegedAction<java.lang.String>
System.getProperty(String)
Constructor and Description |
---|
SystemPropertyValue(java.lang.String propertyName)
Construct a new instance.
|
SystemPropertyValue(java.lang.String propertyName,
java.security.AccessControlContext accessControlContext)
Construct a new instance.
|
SystemPropertyValue(java.lang.String propertyName,
java.security.AccessControlContext accessControlContext,
Value<?> defaultValue)
Construct a new instance.
|
SystemPropertyValue(java.lang.String propertyName,
Value<?> defaultValue)
Construct a new instance.
|
public SystemPropertyValue(java.lang.String propertyName)
propertyName
- the property name to readpublic SystemPropertyValue(java.lang.String propertyName, java.security.AccessControlContext accessControlContext)
propertyName
- the property name to readaccessControlContext
- the access control context in which to fetch the property valuepublic SystemPropertyValue(java.lang.String propertyName, Value<?> defaultValue)
propertyName
- the property name to readdefaultValue
- the value to use if the property is unsetpublic SystemPropertyValue(java.lang.String propertyName, java.security.AccessControlContext accessControlContext, Value<?> defaultValue)
propertyName
- the property name to readaccessControlContext
- the access control context in which to fetch the property valuedefaultValue
- the value to use if the property is unsetpublic java.lang.String getValue() throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
public java.lang.String run()
run
in interface java.security.PrivilegedAction<java.lang.String>
Copyright © 2012 JBoss, a division of Red Hat, Inc.