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.