A convenience class for retrieving the boolean value of a system property
as a privileged action.
An instance of this class can be used as the argument of
AccessController.doPrivileged .
The following code retrieves the boolean value of the system
property named "prop" as a privileged action:
boolean b = ((Boolean)java.security.AccessController.doPrivileged(
new GetBooleanAction("prop"))).booleanValue();
author: Roland Schemers version: 1.6, 02/02/00 See Also: java.security.PrivilegedAction See Also: java.security.AccessController since: JDK1.2 |