|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.security.action.GetPropertyAction
A convenience class for retrieving the string value of a system property as a privileged action.
PrivilegedAction
,
AccessController
Constructor Summary | |
GetPropertyAction(java.lang.String prop)
Constructor that takes the name of the system property whose string value needs to be determined. |
|
GetPropertyAction(java.lang.String prop,
java.lang.String defaultVal)
Constructor that takes the name of the system property and the default value to be used when property is not set. |
Method Summary | |
java.lang.Object |
run()
Determines the string value of the system property whose name was specified in the constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GetPropertyAction(java.lang.String prop)
prop
- the name of the system propertypublic GetPropertyAction(java.lang.String prop, java.lang.String defaultVal)
prop
- the name of the system propertydefaultVal
- the default valueMethod Detail |
public java.lang.Object run()
run
in interface java.security.PrivilegedAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |