class PrivilegedExecutor extends java.lang.Object implements DirectExecutor
| Modifier and Type | Field and Description |
|---|---|
private java.security.AccessControlContext |
context |
private DirectExecutor |
delegate |
| Constructor and Description |
|---|
PrivilegedExecutor(DirectExecutor delegate,
java.security.AccessControlContext context) |
PrivilegedExecutor(DirectExecutor delegate,
java.lang.Class<?> targetClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.Runnable command)
Executes the given command in the calling thread.
|
java.lang.String |
toString() |
private final DirectExecutor delegate
private final java.security.AccessControlContext context
PrivilegedExecutor(DirectExecutor delegate, java.security.AccessControlContext context)
PrivilegedExecutor(DirectExecutor delegate, java.lang.Class<?> targetClass) throws java.lang.SecurityException
java.lang.SecurityExceptionpublic void execute(java.lang.Runnable command)
DirectExecutorexecute in interface java.util.concurrent.Executorexecute in interface DirectExecutorcommand - the runnable taskpublic java.lang.String toString()
toString in class java.lang.Object