@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. |
JobExplorer |
jobExplorer() |
JobLauncher |
jobLauncher() |
JobRegistry |
jobRegistry() |
JobRepository |
jobRepository() |
org.springframework.transaction.PlatformTransactionManager |
transactionManager() |
getConfigurer, jobBuilders, setImportMetadata, stepBuilders@Bean public JobRepository jobRepository() throws java.lang.Exception
jobRepository in class AbstractBatchConfigurationjava.lang.Exception@Bean public JobLauncher jobLauncher() throws java.lang.Exception
jobLauncher in class AbstractBatchConfigurationjava.lang.Exception@Bean public JobRegistry jobRegistry() throws java.lang.Exception
jobRegistry in class AbstractBatchConfigurationjava.lang.Exception@Bean public JobExplorer jobExplorer()
jobExplorer in class AbstractBatchConfiguration@Bean
public org.springframework.transaction.PlatformTransactionManager transactionManager()
throws java.lang.Exception
transactionManager in class AbstractBatchConfigurationjava.lang.Exceptionprotected void initialize()
throws java.lang.Exception
configurer, defaulting to some
sensible values as long as a unique DataSource is available.java.lang.Exception - if there is a problem in the configurer