Class BaseTask<T extends TaskParameters>

java.lang.Object
org.sejda.model.task.BaseTask<T>
Type Parameters:
T - parameters type to be executed
All Implemented Interfaces:
Task<T>

public abstract class BaseTask<T extends TaskParameters> extends Object implements Task<T>
Base class for an Task
Author:
Andrea Vacondio
  • Constructor Details

    • BaseTask

      public BaseTask()
  • Method Details

    • before

      public void before(T parameters, TaskExecutionContext context) throws TaskException
      Description copied from interface: Task
      Called before the actual execution of the task. Can be used to perform additional validation or initialization and to deny the execution in case some requirements are not met throwing a TaskException.
      Specified by:
      before in interface Task<T extends TaskParameters>
      Parameters:
      parameters - the parameters to be executed
      Throws:
      TaskException - in case of unexpected errors
    • executionContext

      protected TaskExecutionContext executionContext()