Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PrivilegedAction<T>
A computation to be performed with privileges enabled. The computation is
performed by invoking AccessController.doPrivileged
on the
PrivilegedAction
object. This interface is used only for
computations that do not throw checked exceptions; computations that
throw checked exceptions must use PrivilegedExceptionAction
instead.
AccessController
,
AccessController.doPrivileged(PrivilegedAction)
,
PrivilegedExceptionAction
Modifier and Type | Method and Description |
---|---|
T |
run()
Performs the computation. |
Method Detail |
---|
T run()
AccessController.doPrivileged
after enabling privileges.
PrivilegedAction
should document what (if anything) this value represents.AccessController.doPrivileged(PrivilegedAction)
,
AccessController.doPrivileged(PrivilegedAction,
AccessControlContext)
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.