|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.security.action.GetIntegerAction
A convenience class for retrieving the integer value of a system property as a privileged action.
PrivilegedAction
,
AccessController
Constructor Summary | |
GetIntegerAction(java.lang.String prop)
Constructor that takes the name of the system property whose integer value needs to be determined. |
|
GetIntegerAction(java.lang.String prop,
int defaultVal)
Constructor that takes the name of the system property and a default value to use when property is not set. |
Method Summary | |
java.lang.Object |
run()
Determines the integer 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 GetIntegerAction(java.lang.String prop)
prop
- the name of the system propertypublic GetIntegerAction(java.lang.String prop, int defaultVal)
prop
- the name of the system propertydefaultVal
- the default valueMethod Detail |
public java.lang.Object run()
If there is no property of the specified name, or if the property
does not have the correct numeric format, then an Integer
object representing the default value that was specified in the
constructor is returned, or null
if no default value was
specified.
run
in interface java.security.PrivilegedAction
Integer
value of the property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |