Class SimpleBatchConfiguration
java.lang.Object
org.springframework.batch.core.configuration.annotation.AbstractBatchConfiguration
org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
ModularBatchConfiguration
@Configuration(proxyBeanMethods=false)
public class SimpleBatchConfiguration
extends AbstractBatchConfiguration
Base
Configuration class to provide a common structure for enabling and using
Spring Batch. Customization is available by implementing the BatchConfigurer
interface.- Since:
- 2.2
- Author:
- Dave Syer, Mahmoud Ben Hassine
- See Also:
-
Field Summary
Fields inherited from class org.springframework.batch.core.configuration.annotation.AbstractBatchConfiguration
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEstablish theJobExplorerfor the batch execution.Establish theJobLauncherfor the batch execution.Establish theJobRepositoryfor the batch execution.org.springframework.transaction.PlatformTransactionManagerEstablish thePlatformTransactionManagerfor the batch execution.Methods inherited from class org.springframework.batch.core.configuration.annotation.AbstractBatchConfiguration
afterPropertiesSet, getOrCreateConfigurer, jobBuilders, jobRegistry, stepBuilders
-
Constructor Details
-
SimpleBatchConfiguration
public SimpleBatchConfiguration()
-
-
Method Details
-
jobRepository
Description copied from class:AbstractBatchConfigurationEstablish theJobRepositoryfor the batch execution.- Specified by:
jobRepositoryin classAbstractBatchConfiguration- Returns:
- The instance of the
JobRepository. - Throws:
Exception- TheExceptionthrown if an error occurs.
-
jobLauncher
Description copied from class:AbstractBatchConfigurationEstablish theJobLauncherfor the batch execution.- Specified by:
jobLauncherin classAbstractBatchConfiguration- Returns:
- The instance of the
JobLauncher. - Throws:
Exception- TheExceptionthrown if an error occurs.
-
jobExplorer
Description copied from class:AbstractBatchConfigurationEstablish theJobExplorerfor the batch execution.- Specified by:
jobExplorerin classAbstractBatchConfiguration- Returns:
- The instance of the
JobExplorer. - Throws:
Exception- TheExceptionthrown if an error occurs.
-
transactionManager
public org.springframework.transaction.PlatformTransactionManager transactionManager() throws ExceptionDescription copied from class:AbstractBatchConfigurationEstablish thePlatformTransactionManagerfor the batch execution.- Specified by:
transactionManagerin classAbstractBatchConfiguration- Returns:
- The instance of the
PlatformTransactionManager. - Throws:
Exception- TheExceptionthrown if an error occurs.
-