java.lang.Object
org.sejda.model.task.BaseTask<T>
- Type Parameters:
T
- parameters type to be executed
- All Implemented Interfaces:
Task<T>
Base class for an
Task
- Author:
- Andrea Vacondio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
before
(T parameters, TaskExecutionContext context) Called before the actual execution of the task.protected TaskExecutionContext
-
Constructor Details
-
BaseTask
public BaseTask()
-
-
Method Details
-
before
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 aTaskException
.- Specified by:
before
in interfaceTask<T extends TaskParameters>
- Parameters:
parameters
- the parameters to be executed- Throws:
TaskException
- in case of unexpected errors
-
executionContext
-