public class TaskListenerExecutor extends Object implements TaskExecutionListener
TaskExecutionListener at the
appropriate time.| Constructor and Description |
|---|
TaskListenerExecutor(Map<Method,Object> beforeTaskInstances,
Map<Method,Object> afterTaskInstances,
Map<Method,Object> failedTaskInstances) |
| Modifier and Type | Method and Description |
|---|---|
void |
onTaskEnd(TaskExecution taskExecution)
Executes all the methods that have been annotated with @AfterTask.
|
void |
onTaskFailed(TaskExecution taskExecution,
Throwable throwable)
Executes all the methods that have been annotated with @FailedTask.
|
void |
onTaskStartup(TaskExecution taskExecution)
Executes all the methods that have been annotated with @BeforeTask.
|
public void onTaskStartup(TaskExecution taskExecution)
onTaskStartup in interface TaskExecutionListenertaskExecution - associated with the event.public void onTaskEnd(TaskExecution taskExecution)
onTaskEnd in interface TaskExecutionListenertaskExecution - associated with the event.public void onTaskFailed(TaskExecution taskExecution, Throwable throwable)
onTaskFailed in interface TaskExecutionListenerthrowable - that was not caught for the task execution.taskExecution - associated with the event.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.