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