org.springframework.batch.core.configuration.annotation
Class ModularBatchConfiguration

java.lang.Object
  extended by org.springframework.batch.core.configuration.annotation.AbstractBatchConfiguration
      extended by org.springframework.batch.core.configuration.annotation.ModularBatchConfiguration
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.annotation.ImportAware

@Configuration
public class ModularBatchConfiguration
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
See Also:
EnableBatchProcessing

Constructor Summary
ModularBatchConfiguration()
           
 
Method Summary
 JobLauncher jobLauncher()
           
 AutomaticJobRegistrar jobRegistrar()
           
 JobRepository jobRepository()
           
 org.springframework.transaction.PlatformTransactionManager transactionManager()
           
 
Methods inherited from class org.springframework.batch.core.configuration.annotation.AbstractBatchConfiguration
getConfigurer, jobBuilders, jobRegistry, setImportMetadata, stepBuilders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModularBatchConfiguration

public ModularBatchConfiguration()
Method Detail

jobRepository

@Bean
public JobRepository jobRepository()
                            throws Exception
Specified by:
jobRepository in class AbstractBatchConfiguration
Throws:
Exception

jobLauncher

@Bean
public JobLauncher jobLauncher()
                        throws Exception
Specified by:
jobLauncher in class AbstractBatchConfiguration
Throws:
Exception

transactionManager

@Bean
public org.springframework.transaction.PlatformTransactionManager transactionManager()
                                                                              throws Exception
Specified by:
transactionManager in class AbstractBatchConfiguration
Throws:
Exception

jobRegistrar

@Bean
public AutomaticJobRegistrar jobRegistrar()
                                   throws Exception
Throws:
Exception


Copyright © 2013 SpringSource. All Rights Reserved.