@Configuration public class SimpleBatchConfiguration extends AbstractBatchConfiguration
Configuration
class providing common structure for enabling and using Spring Batch. Customization is
available by implementing the BatchConfigurer
interface. The main components are created as lazy proxies that
only initialize when a method is called. This is to prevent (as much as possible) configuration cycles from
developing when these components are needed in a configuration resource that itself provides a
BatchConfigurer
.EnableBatchProcessing
Constructor and Description |
---|
SimpleBatchConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected void |
initialize()
Sets up the basic components by extracting them from the
configurer , defaulting to some
sensible values as long as a unique DataSource is available. |
JobLauncher |
jobLauncher() |
JobRegistry |
jobRegistry() |
JobRepository |
jobRepository() |
org.springframework.transaction.PlatformTransactionManager |
transactionManager() |
getConfigurer, jobBuilders, setImportMetadata, stepBuilders
@Bean public JobRepository jobRepository() throws Exception
jobRepository
in class AbstractBatchConfiguration
Exception
@Bean public JobLauncher jobLauncher() throws Exception
jobLauncher
in class AbstractBatchConfiguration
Exception
@Bean public JobRegistry jobRegistry() throws Exception
jobRegistry
in class AbstractBatchConfiguration
Exception
@Bean public org.springframework.transaction.PlatformTransactionManager transactionManager() throws Exception
transactionManager
in class AbstractBatchConfiguration
Exception
protected void initialize() throws Exception
configurer
, defaulting to some
sensible values as long as a unique DataSource is available.Exception
- if there is a problem in the configurerCopyright © 2014 Pivotal. All rights reserved.