public interface PrivilegedAction<T>
AccessController.doPrivileged在
PrivilegedAction对象执行。该接口仅用于计算不抛出检查异常;计算抛出检查异常必须使用
PrivilegedExceptionAction相反。
T run()
AccessController.doPrivileged在启用的特权。
PrivilegedAction应该什么样的文件(如果有的话)这个值表示。
AccessController.doPrivileged(PrivilegedAction),
AccessController.doPrivileged(PrivilegedAction, 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.