diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/DefaultBatchConfigurer.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/DefaultBatchConfigurer.java index ea03fc2d8..468ae0e04 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/DefaultBatchConfigurer.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/DefaultBatchConfigurer.java @@ -15,8 +15,12 @@ */ package org.springframework.batch.core.configuration.annotation; +import javax.annotation.PostConstruct; +import javax.sql.DataSource; + import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.springframework.batch.core.configuration.BatchConfigurationException; import org.springframework.batch.core.explore.JobExplorer; import org.springframework.batch.core.explore.support.JobExplorerFactoryBean; @@ -32,9 +36,6 @@ import org.springframework.jdbc.datasource.DataSourceTransactionManager; import org.springframework.stereotype.Component; import org.springframework.transaction.PlatformTransactionManager; -import javax.annotation.PostConstruct; -import javax.sql.DataSource; - @Component public class DefaultBatchConfigurer implements BatchConfigurer { private static final Log logger = LogFactory.getLog(DefaultBatchConfigurer.class); @@ -109,7 +110,7 @@ public class DefaultBatchConfigurer implements BatchConfigurer { } } - private JobLauncher createJobLauncher() throws Exception { + protected JobLauncher createJobLauncher() throws Exception { SimpleJobLauncher jobLauncher = new SimpleJobLauncher(); jobLauncher.setJobRepository(jobRepository); jobLauncher.afterPropertiesSet();