Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1054

optional mode to switch from org.quartz.Job to java.lang.Runnable

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.2
    • 1.5.3
    • Scheduler
    • None

    Description

      with that it's possible to use

      @Scheduled(/*...*/)
      public class MyJob implements Runnable {
          @Inject
          private MyService myService;
      
          @Override
          public void run() {
            //..
          }
      }
      

      instead of

      @Scheduled(/*...*/)
      public class MyJob implements org.quartz.Job {
          @Inject
          private MyService myService;
      
          @Override
          public void execute(JobExecutionContext context) throws JobExecutionException {
            //...
          }
      }
      

      Attachments

        Activity

          People

            gpetracek Gerhard Petracek
            gpetracek Gerhard Petracek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: