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.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.annotation.ImportAware
- Direct Known Subclasses:
ModularBatchConfiguration
@Configuration(proxyBeanMethods=false)
public class SimpleBatchConfiguration
extends AbstractBatchConfiguration
Base
Configuration class providing 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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext -
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, getConfigurer, jobBuilders, jobRegistry, setImportMetadata, stepBuilders
-
Field Details
-
context
@Autowired protected org.springframework.context.ApplicationContext context
-
-
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 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 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 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 error occurs.
-