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

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

@Configuration
@Import(value=org.springframework.batch.core.configuration.annotation.StepScopeConfiguration.class)
public abstract class AbstractBatchConfiguration
extends Object
implements org.springframework.context.annotation.ImportAware

Base Configuration class providing common structure for enabling and using Spring Batch. Customization is available by implementing the BatchConfigurer interface. BatchConfigurer.

Since:
2.2
Author:
Dave Syer
See Also:
EnableBatchProcessing

Constructor Summary
AbstractBatchConfiguration()
           
 
Method Summary
protected  BatchConfigurer getConfigurer(Collection<BatchConfigurer> configurers)
           
 JobBuilderFactory jobBuilders()
           
abstract  JobLauncher jobLauncher()
           
 JobRegistry jobRegistry()
           
abstract  JobRepository jobRepository()
           
 void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
           
 StepBuilderFactory stepBuilders()
           
abstract  org.springframework.transaction.PlatformTransactionManager transactionManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBatchConfiguration

public AbstractBatchConfiguration()
Method Detail

jobBuilders

@Bean
public JobBuilderFactory jobBuilders()
                              throws Exception
Throws:
Exception

stepBuilders

@Bean
public StepBuilderFactory stepBuilders()
                                throws Exception
Throws:
Exception

jobRepository

@Bean
public abstract JobRepository jobRepository()
                                     throws Exception
Throws:
Exception

jobLauncher

@Bean
public abstract JobLauncher jobLauncher()
                                 throws Exception
Throws:
Exception

jobRegistry

@Bean
public JobRegistry jobRegistry()
                        throws Exception
Throws:
Exception

transactionManager

@Bean
public abstract org.springframework.transaction.PlatformTransactionManager transactionManager()
                                                                                       throws Exception
Throws:
Exception

setImportMetadata

public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
Specified by:
setImportMetadata in interface org.springframework.context.annotation.ImportAware

getConfigurer

protected BatchConfigurer getConfigurer(Collection<BatchConfigurer> configurers)
                                 throws Exception
Throws:
Exception


Copyright © 2013 SpringSource. All Rights Reserved.