|
JBoss Modular Service Kernel API 1.0.0.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.msc.value.SystemPropertyValue
public final class SystemPropertyValue

A value which comes from a system property.
System.getProperty(String)| Constructor Summary | |
|---|---|
SystemPropertyValue(String propertyName)
Construct a new instance. |
|
SystemPropertyValue(String propertyName,
AccessControlContext accessControlContext)
Construct a new instance. |
|
SystemPropertyValue(String propertyName,
AccessControlContext accessControlContext,
Value<?> defaultValue)
Construct a new instance. |
|
SystemPropertyValue(String propertyName,
Value<?> defaultValue)
Construct a new instance. |
|
| Method Summary | |
|---|---|
String |
getValue()
Get the actual value. |
String |
run()
Fetch the property in an unprivileged context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemPropertyValue(String propertyName)
propertyName - the property name to read
public SystemPropertyValue(String propertyName,
AccessControlContext accessControlContext)
propertyName - the property name to readaccessControlContext - the access control context in which to fetch the property value
public SystemPropertyValue(String propertyName,
Value<?> defaultValue)
propertyName - the property name to readdefaultValue - the value to use if the property is unset
public SystemPropertyValue(String propertyName,
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 unset| Method Detail |
|---|
public String getValue()
throws IllegalStateException,
IllegalArgumentException
getValue in interface Value<String>IllegalStateException - if the value is time-sensitive and the current state does not allow retrieval.
IllegalArgumentException - when the value cannot be read due to misconfigurationpublic String run()
run in interface PrivilegedAction<String>
|
JBoss Modular Service Kernel API 1.0.0.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||