Class ScheduleTaskDispatcher

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.boot.CommandLineRunner, org.springframework.context.ApplicationContextAware

    @Component
    public class ScheduleTaskDispatcher
    extends java.lang.Object
    implements org.springframework.boot.CommandLineRunner, org.springframework.context.ApplicationContextAware
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(java.lang.String name)  
      java.lang.Runnable getTask​(java.lang.String name)  
      void run​(java.lang.String... args)  
      void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScheduleTaskDispatcher

        public ScheduleTaskDispatcher()
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • getTask

        public java.lang.Runnable getTask​(java.lang.String name)
      • contains

        public boolean contains​(java.lang.String name)
      • run

        public void run​(java.lang.String... args)
                 throws java.lang.Exception
        Specified by:
        run in interface org.springframework.boot.CommandLineRunner
        Throws:
        java.lang.Exception