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.CommonStatsService; | |
8 | import edu.ucsb.cs156.happiercows.services.jobs.JobContextConsumer; | |
9 | ||
10 | @Service | |
11 | public class RecordCommonStatsJobFactory { | |
12 | | |
13 | @Autowired | |
14 | private CommonsRepository commonsRepository; | |
15 | ||
16 | @Autowired | |
17 | private CommonStatsService commonStatsService; | |
18 | ||
19 | public JobContextConsumer create() { | |
20 |
1
1. create : replaced return value with null for edu/ucsb/cs156/happiercows/jobs/RecordCommonStatsJobFactory::create → KILLED |
return new RecordCommonStatsJob( |
21 | commonStatsService, | |
22 | commonsRepository); | |
23 | } | |
24 | | |
25 | } | |
Mutations | ||
20 |
1.1 |