public interface PrivilegedExceptionAction<T>
PrivilegedExceptionAction对象上的PrivilegedExceptionAction来执行AccessController.doPrivileged 。
此接口仅用于抛出已检查异常的计算;
不抛出检查异常的计算应该使用PrivilegedAction 。
T run() throws 异常
AccessController.doPrivileged调用。
PrivilegedExceptionAction每个类应该记录这个值代表什么(如果有的话)。
异常 - 发生特殊情况。
实现PrivilegedExceptionAction每个类应该记录其运行方法可以抛出的异常。
AccessController.doPrivileged(PrivilegedExceptionAction),
AccessController.doPrivileged(PrivilegedExceptionAction,AccessControlContext)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.