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)
Called before the actual execution of the task.
|
void |
execute(T parameters)
Executes the task with the input parameters
|
NotifiableTaskMetadata |
getNotifiableTaskMetadata() |
NotifiableTaskMetadata getNotifiableTaskMetadata()
void before(T parameters) throws TaskException
TaskException.parameters - the parameters to be executedTaskException - in case of unexpected errorsvoid execute(T parameters) throws TaskException
parameters - TaskExceptionvoid after()
Copyright © 2015. All Rights Reserved.