|
JBoss Modular Service Kernel API 1.0.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.msc.value.EnvironmentPropertyValue
public final class EnvironmentPropertyValue
A value which comes from an environment property.
System.getenv(String)| Constructor Summary | |
|---|---|
EnvironmentPropertyValue(java.lang.String propertyName)
Construct a new instance. |
|
EnvironmentPropertyValue(java.lang.String propertyName,
java.security.AccessControlContext accessControlContext)
Construct a new instance. |
|
EnvironmentPropertyValue(java.lang.String propertyName,
java.security.AccessControlContext accessControlContext,
Value<?> defaultValue)
Construct a new instance. |
|
EnvironmentPropertyValue(java.lang.String propertyName,
Value<?> defaultValue)
Construct a new instance. |
|
| Method Summary | |
|---|---|
java.lang.String |
getValue()
Get the actual value. |
java.lang.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 EnvironmentPropertyValue(java.lang.String propertyName)
propertyName - the property name to read
public EnvironmentPropertyValue(java.lang.String propertyName,
java.security.AccessControlContext accessControlContext)
propertyName - the property name to readaccessControlContext - the access control context in which to fetch the property value
public EnvironmentPropertyValue(java.lang.String propertyName,
Value<?> defaultValue)
propertyName - the property name to readdefaultValue - the value to use if the property is unset
public EnvironmentPropertyValue(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 unset| Method Detail |
|---|
public java.lang.String getValue()
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException
getValue in interface Value<java.lang.String>java.lang.IllegalStateException - if the value is time-sensitive and the current state does not allow retrieval.
java.lang.IllegalArgumentException - when the value cannot be read due to misconfigurationpublic java.lang.String run()
run in interface java.security.PrivilegedAction<java.lang.String>
|
JBoss Modular Service Kernel API 1.0.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||