Class PojoTaskWrapper

java.lang.Object
org.jppf.client.taskwrapper.AbstractTaskObjectWrapper
org.jppf.client.taskwrapper.PojoTaskWrapper
All Implemented Interfaces:
Serializable, TaskObjectWrapper

public class PojoTaskWrapper extends AbstractTaskObjectWrapper
Task wrapper for POJO classes.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • PojoTaskWrapper

      public PojoTaskWrapper(String method, Object taskObject, Object... args)
      Initialize this wrapper with the specified Runnable object.
      Parameters:
      method - the name of the method to execute on the task object.
      taskObject - the runnable object to execute.
      args - the arguments of the method to execute.
  • Method Details

    • execute

      public Object execute() throws Exception
      Execute the run method of this runnable task.
      Returns:
      the result of the execution.
      Throws:
      Exception - if an error occurs during the execution.
    • getTaskObject

      public Object getTaskObject()
      Return the object on which a method or constructor is called.
      Returns:
      an object or null if the invoked method is static.