You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/AbstractBatchConfiguration.java
Copy file name to clipboardExpand all lines: spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/DefaultBatchConfigurer.java
+25-24Lines changed: 25 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -42,23 +42,6 @@ public class DefaultBatchConfigurer implements BatchConfigurer {
42
42
privateJobLauncherjobLauncher;
43
43
privateJobExplorerjobExplorer;
44
44
45
-
/**
46
-
* Sets the dataSource.
47
-
*
48
-
* @param dataSource The data source to use. Must not be {@code null}.
49
-
*/
50
-
publicvoidsetDataSource(DataSourcedataSource) {
51
-
Assert.notNull(dataSource, "DataSource must not be null");
52
-
this.dataSource = dataSource;
53
-
}
54
-
55
-
/**
56
-
* @return The {@link DataSource} used by the {@link DefaultBatchConfigurer}.
57
-
*/
58
-
publicDataSourcegetDataSource() {
59
-
returnthis.dataSource;
60
-
}
61
-
62
45
/**
63
46
* Create a new {@link DefaultBatchConfigurer} with the passed datasource. This constructor
64
47
* will configure a default {@link DataSourceTransactionManager}.
@@ -81,24 +64,42 @@ public DefaultBatchConfigurer(DataSource dataSource, PlatformTransactionManager
81
64
this.transactionManager = transactionManager;
82
65
}
83
66
84
-
@Override
85
-
publicJobRepositorygetJobRepository() {
86
-
returnjobRepository;
67
+
/**
68
+
* Sets the dataSource.
69
+
*
70
+
* @param dataSource The data source to use. Must not be {@code null}.
71
+
*/
72
+
publicvoidsetDataSource(DataSourcedataSource) {
73
+
Assert.notNull(dataSource, "DataSource must not be null");
74
+
this.dataSource = dataSource;
87
75
}
88
76
77
+
/**
78
+
* @return The {@link DataSource} used by the {@link DefaultBatchConfigurer}.
Copy file name to clipboardExpand all lines: spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/JobBuilderFactory.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@
22
22
* Convenient factory for a {@link JobBuilder} which sets the {@link JobRepository} automatically.
23
23
*
24
24
* @author Dave Syer
25
+
* @author Mahmoud Ben Hassine
25
26
*
26
27
*/
27
28
publicclassJobBuilderFactory {
@@ -43,8 +44,7 @@ public JobBuilderFactory(JobRepository jobRepository) {
Copy file name to clipboardExpand all lines: spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/StepBuilderFactory.java
0 commit comments