title: Quartz does not support @autowired
body: <p>I am implement a Quartz job using a DAO service as below:</p>
  
  <pre><code>public class InitialFetchFrequenceScheduleJob implements Job
  {
      @Autowired
      private FetchFrequencyService fetchFrequencyService;
  
      @Override
      public void execute(JobExecutionContext context) throws JobExecutionException
      {
          try
          {
              List&lt;FetchFrequency&gt; frequencies = this.fetchFrequencyService.findAll(FetchFrequency.class);
  </code></pre>
  
  <p>The problem is, when call execute() method, the <code>this.fetchFrequencyService.findAll(FetchFrequency.class);</code> will throw NPE because fetchFrequenceService is null. I do anything wrong here? Any reply is much appreciated. Thank you!</p>
  
  <p>P/s I am using Quartz 2.1.7</p>
  
  <p>Update: This is FetchFrequencyServiceImpl:</p>
  
  <pre><code>@Service("fetchFrequencyService")
  public class FetchFrequencyServiceImpl extends GenericDaoImpl implements FetchFrequencyService
  {
  }
  </code></pre>
  
  <p>Update: The code implement job:</p>
  
  <pre><code>JobDetail job = JobBuilder.newJob(InitialFetchFrequenceScheduleJob.class).build();
          Calendar cal = Calendar.getInstance();
          cal.add(Calendar.MINUTE, 1);
          Trigger trigger = TriggerBuilder.newTrigger().forJob(job).startAt(cal.getTime()).build();
          Scheduler scheduler = new StdSchedulerFactory("quartz.properties").getScheduler();
          scheduler.start();
          scheduler.scheduleJob(job, trigger);
  </code></pre>