Annotation Interface EnableTaskLauncher


@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited @Import(TaskLauncherSink.class) @Deprecated public @interface EnableTaskLauncher
Deprecated.
This feature is now end-of-life and will be removed in a future release. No replacement is planned. Please migrate away from using this functionality.

Enable this boot app to be a sink to receive a TaskLaunchRequest and use the TaskLauncher to launch the task.

 @Configuration
 @EnableTaskLauncher
 public class AppConfig {

        @Bean
        public MyCommandLineRunner myCommandLineRunner() {
                return new MyCommandLineRunner()
    }
 }
 
Note that only one of your configuration classes needs to have the @EnableTaskLauncher annotation.
Author:
Glenn Renfro