UploadGradeDataJobFactory.java

package edu.ucsb.cs156.courses.jobs;

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

import edu.ucsb.cs156.courses.repositories.GradeHistoryRepository;
import edu.ucsb.cs156.courses.services.UCSBGradeHistoryService;
import edu.ucsb.cs156.courses.services.UCSBGradeHistoryServiceImpl;
import lombok.extern.slf4j.Slf4j;

@Service
public class UploadGradeDataJobFactory {

    @Autowired
    UCSBGradeHistoryServiceImpl ucsbGradeHistoryServiceImpl;

    @Autowired
    GradeHistoryRepository gradeHistoryRepository;

    public UploadGradeDataJob create() {
        return new UploadGradeDataJob(
                ucsbGradeHistoryServiceImpl,
                gradeHistoryRepository);
    }
}