Skip to content

Commit 2e70607

Browse files
committed
Revisit the configuration code of EnableBatchProcessing
Before this commit, the configuration of infrastructure beans was confusing and not straightforward to customize. This commit changes the way Batch infrastructure beans are configured. The most important changes are: * EnableBatchProcessing now provides new attributes to configure properties of infrastructure beans * Bean registration is now done programmatically with a BeanDefinitionRegistrar instead of importing a class with statically annotated bean definition methods * Bean are now resolved from the application context directly instead of being resolved from a BatchConfigurer * Both a data source and a transaction manager are now required to be defined in the application context * AbstractBatchConfiguration is now intended to be extended by users code to get/customize basic infrastructure beans Issue #3942
1 parent 978b6b3 commit 2e70607

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/AbstractBatchConfiguration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ protected boolean getValidateTransactionState() {
236236
/**
237237
* Return the transaction isolation level when creating job executions. Defaults to
238238
* {@link Isolation#SERIALIZABLE}.
239-
* @returnReturn the transaction isolation level when creating job executions
239+
* @return the transaction isolation level when creating job executions
240240
*/
241241
protected Isolation getIsolationLevelForCreate() {
242242
return Isolation.SERIALIZABLE;
@@ -250,15 +250,15 @@ protected Isolation getIsolationLevelForCreate() {
250250
* databases with multi-byte character sets this number can be smaller (by up to a
251251
* factor of 2 for 2-byte characters) than the declaration of the column length in the
252252
* DDL for the tables. Defaults to
253-
* {@link AbstractJdbcBatchMetadataDao.DEFAULT_EXIT_MESSAGE_LENGTH}
253+
* {@link AbstractJdbcBatchMetadataDao#DEFAULT_EXIT_MESSAGE_LENGTH}
254254
*/
255255
protected int getMaxVarCharLength() {
256256
return AbstractJdbcBatchMetadataDao.DEFAULT_EXIT_MESSAGE_LENGTH;
257257
}
258258

259259
/**
260260
* Return the prefix of Batch meta-data tables. Defaults to
261-
* {@link AbstractJdbcBatchMetadataDao.DEFAULT_TABLE_PREFIX}.
261+
* {@link AbstractJdbcBatchMetadataDao#DEFAULT_TABLE_PREFIX}.
262262
* @return the prefix of meta-data tables
263263
*/
264264
protected String getTablePrefix() {

0 commit comments

Comments
 (0)