org.jppf.client.taskwrapper
Class AbstractPrivilegedAction<T>

java.lang.Object
  extended by org.jppf.client.taskwrapper.AbstractPrivilegedAction<T>
Type Parameters:
T - the type of value returned y the action.
All Implemented Interfaces:
PrivilegedAction<T>

public abstract class AbstractPrivilegedAction<T>
extends Object
implements PrivilegedAction<T>

Abstract superclass for priviledged actions used to invoke a method or constructor through reflection when a security manager is present.

Author:
Laurent Cohen

Field Summary
protected  Object[] args
          The parameters of the method or constructor to invoke.
protected  Exception exception
          Used to capture an exception resulting from the method or constructore invocation.
 
Constructor Summary
AbstractPrivilegedAction()
           
 
Method Summary
 Exception getException()
          Get the exception resulting from the method or constructore invocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.PrivilegedAction
run
 

Field Detail

exception

protected Exception exception
Used to capture an exception resulting from the method or constructore invocation.


args

protected Object[] args
The parameters of the method or constructor to invoke.

Constructor Detail

AbstractPrivilegedAction

public AbstractPrivilegedAction()
Method Detail

getException

public Exception getException()
Get the exception resulting from the method or constructore invocation.

Returns:
an Exception instance.


Copyright © 2005-2010 JPPF Team.