|
|
|
|
@ -102,7 +102,7 @@ public class BatchAutoConfiguration {
@@ -102,7 +102,7 @@ public class BatchAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
private final PlatformTransactionManager transactionManager; |
|
|
|
|
|
|
|
|
|
private final TaskExecutor taskExector; |
|
|
|
|
private final TaskExecutor taskExecutor; |
|
|
|
|
|
|
|
|
|
private final BatchProperties properties; |
|
|
|
|
|
|
|
|
|
@ -118,7 +118,7 @@ public class BatchAutoConfiguration {
@@ -118,7 +118,7 @@ public class BatchAutoConfiguration {
|
|
|
|
|
ObjectProvider<ExecutionContextSerializer> executionContextSerializer) { |
|
|
|
|
this.dataSource = batchDataSource.getIfAvailable(() -> dataSource); |
|
|
|
|
this.transactionManager = batchTransactionManager.getIfAvailable(() -> transactionManager); |
|
|
|
|
this.taskExector = batchTaskExecutor.getIfAvailable(); |
|
|
|
|
this.taskExecutor = batchTaskExecutor.getIfAvailable(); |
|
|
|
|
this.properties = properties; |
|
|
|
|
this.batchConversionServiceCustomizers = batchConversionServiceCustomizers.orderedStream().toList(); |
|
|
|
|
this.executionContextSerializer = executionContextSerializer.getIfAvailable(); |
|
|
|
|
@ -163,7 +163,7 @@ public class BatchAutoConfiguration {
@@ -163,7 +163,7 @@ public class BatchAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected TaskExecutor getTaskExecutor() { |
|
|
|
|
return (this.taskExector != null) ? this.taskExector : super.getTaskExecutor(); |
|
|
|
|
return (this.taskExecutor != null) ? this.taskExecutor : super.getTaskExecutor(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|