Skip to content

Commit

Permalink
nettoyage (complet)
Browse files Browse the repository at this point in the history
  • Loading branch information
julg committed Nov 10, 2023
1 parent 6d05de4 commit 391ea66
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import fr.abes.theses_batch_indexation.database.TheseModel;
import fr.abes.theses_batch_indexation.notification.JobTheseCompletionNotificationListener;
import fr.abes.theses_batch_indexation.reader.JdbcPagingCustomReader;
import fr.abes.theses_batch_indexation.reader.TheseItemReader;
import fr.abes.theses_batch_indexation.utils.XMLJsonMarshalling;
import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.core.ItemProcessListener;
Expand All @@ -17,7 +16,6 @@
import org.springframework.batch.core.repository.JobRepository;
import org.springframework.batch.core.step.tasklet.Tasklet;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.ItemWriter;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
Expand All @@ -43,16 +41,13 @@ public class BatchConfiguration {
private final ItemWriteListener<TheseModel> theseWriteListener;
private final ItemProcessListener<TheseModel, TheseModel> theseProcessListener;

private final TheseItemReader theseItemReader;

public BatchConfiguration(JobBuilderFactory jobs, StepBuilderFactory stepBuilderFactory, @Qualifier("dataSourceLecture") DataSource dataSourceLecture, JobConfig config, @Qualifier("theseWriteListener") ItemWriteListener<TheseModel> theseWriteListener, @Qualifier("theseProcessListener") ItemProcessListener<TheseModel, TheseModel> theseProcessListener, TheseItemReader theseItemReader) {
public BatchConfiguration(JobBuilderFactory jobs, StepBuilderFactory stepBuilderFactory, @Qualifier("dataSourceLecture") DataSource dataSourceLecture, JobConfig config, @Qualifier("theseWriteListener") ItemWriteListener<TheseModel> theseWriteListener, @Qualifier("theseProcessListener") ItemProcessListener<TheseModel, TheseModel> theseProcessListener) {
this.jobs = jobs;
this.stepBuilderFactory = stepBuilderFactory;
this.dataSourceLecture = dataSourceLecture;
this.config = config;
this.theseWriteListener = theseWriteListener;
this.theseProcessListener = theseProcessListener;
this.theseItemReader = theseItemReader;
}

// ---------- JOB ---------------------------------------------
Expand Down

0 comments on commit 391ea66

Please sign in to comment.