Interface TaskObjectWrapper

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractTaskObjectWrapper, CallableTaskWrapper, PojoTaskWrapper, RunnableTaskWrapper

public interface TaskObjectWrapper extends Serializable
Wrapper interface for tasks that are not implementations of Task.
Author:
Laurent Cohen
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Type-safe enumeration for the type of method to execute.
  • Method Summary

    Modifier and Type
    Method
    Description
    Execute the task depending on its type.
    The type of the method to execute on the object.
    Return the object on which a method or constructor is called.
  • Method Details

    • getMethodType

      The type of the method to execute on the object.
      Returns:
      a MethodType enum value.
    • execute

      Object execute() throws Exception
      Execute the task depending on its type.
      Returns:
      the result of the execution.
      Throws:
      Exception - if an error occurs during the execution.
    • getTaskObject

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