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.repositories.UserCommonsRepository; | |
8 | import edu.ucsb.cs156.happiercows.repositories.UserRepository; | |
9 | import edu.ucsb.cs156.happiercows.services.jobs.JobContextConsumer; | |
10 | import edu.ucsb.cs156.happiercows.services.CommonsPlusBuilderService; | |
11 | import lombok.extern.slf4j.Slf4j; | |
12 | ||
13 | @Service | |
14 | @Slf4j | |
15 | public class UpdateCowHealthJobFactory { | |
16 | ||
17 | @Autowired | |
18 | private CommonsRepository commonsRepository; | |
19 | | |
20 | @Autowired | |
21 | private UserCommonsRepository userCommonsRepository; | |
22 | ||
23 | @Autowired | |
24 | private UserRepository userRepository; | |
25 | ||
26 | @Autowired | |
27 | private CommonsPlusBuilderService commonsPlusBuilderService; | |
28 | ||
29 | public JobContextConsumer create() { | |
30 | log.info("commonsRepository = " + commonsRepository); | |
31 | log.info("userCommonsRepository = " + userCommonsRepository); | |
32 |
1
1. create : replaced return value with null for edu/ucsb/cs156/happiercows/jobs/UpdateCowHealthJobFactory::create → KILLED |
return new UpdateCowHealthJob(commonsRepository, userCommonsRepository, userRepository, commonsPlusBuilderService); |
33 | } | |
34 | } | |
Mutations | ||
32 |
1.1 |