Package org.springframework.cloud.task.listener.annotation

# Annotation Type BeforeTask

@Target({METHOD,ANNOTATION_TYPE}) @Retention(RUNTIME) @Documented public @interface BeforeTask

`TaskExecutionListener.onTaskStartup(TaskExecution)`.

     public class MyListener {
            @BeforeTask
            public void  doSomething(TaskExecution taskExecution) {
        }
     }

Author:
  Glenn Renfro