Class NullBatchConfiguration
- java.lang.Object
-
- com.github.marschall.spring.batch.inmemory.NullBatchConfiguration
-
@Configuration public class NullBatchConfiguration extends Object
An alternative toAbstractBatchConfigurationthat sets up Spring Batch with a nullJobRepositoryandJobExplorerwithout the need for aBatchConfigurer.
-
-
Constructor Summary
Constructors Constructor Description NullBatchConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JobBuilderFactoryjobBuilders()Defines theJobBuilderFactorybean.JobExplorerjobExplorer()Defines theJobRepositorybean which will be aInMemoryJobExplorer.JobLauncherjobLauncher()Defines theJobLauncherbean.JobRegistryjobRegistry()Defines theJobRegistrybean.JobRepositoryjobRepository()Defines theNullJobRepositorybean which will be aInMemoryJobRepository.static JobScopejobScope()Defines theJobScopebean.StepBuilderFactorystepBuilders()Defines theStepBuilderFactorybean.static StepScopestepScope()Defines theStepScopebean.
-
-
-
Method Detail
-
jobBuilders
@Bean public JobBuilderFactory jobBuilders()
Defines theJobBuilderFactorybean.- Returns:
- the
JobBuilderFactorybean.
-
stepBuilders
@Bean public StepBuilderFactory stepBuilders()
Defines theStepBuilderFactorybean.- Returns:
- the
StepBuilderFactorybean.
-
jobRepository
@Bean public JobRepository jobRepository()
Defines theNullJobRepositorybean which will be aInMemoryJobRepository.- Returns:
- the
JobRepositorybean.
-
jobLauncher
@Bean public JobLauncher jobLauncher()
Defines theJobLauncherbean.- Returns:
- the
JobLauncherbean.
-
jobExplorer
@Bean public JobExplorer jobExplorer()
Defines theJobRepositorybean which will be aInMemoryJobExplorer.- Returns:
- the
JobRepositorybean.
-
jobRegistry
@Bean public JobRegistry jobRegistry()
Defines theJobRegistrybean.- Returns:
- the
JobRegistrybean.
-
stepScope
@Bean public static StepScope stepScope()
Defines theStepScopebean.- Returns:
- the
StepScopebean.
-
-