T
- parameters type to be executedpublic interface Task<T extends TaskParameters>
TaskParameters
subclass used to parameterize the task execution. Implementing classes must define a
public no-args constructor that will be reflectively invoked when the Task
is executed.Modifier and Type | Method and Description |
---|---|
void |
after()
Called after the task is executed, can be used to close resources.
|
void |
before(T parameters,
TaskExecutionContext context)
Called before the actual execution of the task.
|
void |
execute(T parameters)
Executes the task with the input parameters
|
void before(T parameters, TaskExecutionContext context) throws TaskException
TaskException
.parameters
- the parameters to be executedcontext
- TaskException
- in case of unexpected errorsvoid execute(T parameters) throws TaskException
parameters
- TaskException
void after()
Copyright © 2019 sejda. All rights reserved.