InstructorReportJobSingleCommonsFactory.java

  1. package edu.ucsb.cs156.happiercows.jobs;

  2. import org.springframework.beans.factory.annotation.Autowired;
  3. import org.springframework.stereotype.Service;

  4. import edu.ucsb.cs156.happiercows.services.ReportService;
  5. import edu.ucsb.cs156.happiercows.services.jobs.JobContextConsumer;

  6. @Service
  7. public class InstructorReportJobSingleCommonsFactory {

  8.     @Autowired
  9.     private ReportService reportService;

  10.     public JobContextConsumer create(long commonsId) {
  11.         return new InstructorReportJobSingleCommons(commonsId, reportService);
  12.     }
  13.  
  14. }