1 | package edu.ucsb.cs156.happiercows.jobs; | |
2 | ||
3 | import org.springframework.beans.factory.annotation.Autowired; | |
4 | import org.springframework.stereotype.Service; | |
5 | ||
6 | import edu.ucsb.cs156.happiercows.repositories.CommonsRepository; | |
7 | import edu.ucsb.cs156.happiercows.services.ReportService; | |
8 | import edu.ucsb.cs156.happiercows.services.jobs.JobContextConsumer; | |
9 | ||
10 | @Service | |
11 | public class InstructorReportJobFactory { | |
12 | ||
13 | @Autowired | |
14 | private ReportService reportService; | |
15 | ||
16 | @Autowired | |
17 | private CommonsRepository commonsRepository; | |
18 | ||
19 | public JobContextConsumer create() { | |
20 |
1
1. create : replaced return value with null for edu/ucsb/cs156/happiercows/jobs/InstructorReportJobFactory::create → KILLED |
return new InstructorReportJob(reportService, commonsRepository); |
21 | } | |
22 | ||
23 | } | |
Mutations | ||
20 |
1.1 |