|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.security.action.GetBooleanAction
A convenience class for retrieving the boolean value of a system property as a privileged action.
PrivilegedAction
,
AccessController
Constructor Summary | |
GetBooleanAction(java.lang.String prop)
Constructor that takes the name of the system property whose boolean value needs to be determined. |
|
GetBooleanAction(java.lang.String prop,
boolean defaultVal)
Constructor that takes the name of the system property whose boolean value needs to be determined and a default value to use when property is not set. |
Method Summary | |
java.lang.Object |
run()
Determines the boolean 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 GetBooleanAction(java.lang.String prop)
prop
- the name of the system propertypublic GetBooleanAction(java.lang.String prop, boolean defaultVal)
prop
- the name of the system propertydefaultVal
- default valueMethod Detail |
public java.lang.Object run()
run
in interface java.security.PrivilegedAction
Boolean
value of the property.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |