Class NullBatchConfiguration
- java.lang.Object
-
- com.github.marschall.spring.batch.inmemory.NullBatchConfiguration
-
@Configuration public class NullBatchConfiguration extends Object
An alternative toAbstractBatchConfiguration
that sets up Spring Batch with a nullJobRepository
andJobExplorer
without 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 JobBuilderFactory
jobBuilders()
Defines theJobBuilderFactory
bean.JobExplorer
jobExplorer()
Defines theJobRepository
bean which will be aInMemoryJobExplorer
.JobLauncher
jobLauncher()
Defines theJobLauncher
bean.JobRegistry
jobRegistry()
Defines theJobRegistry
bean.JobRepository
jobRepository()
Defines theNullJobRepository
bean which will be aInMemoryJobRepository
.static JobScope
jobScope()
Defines theJobScope
bean.StepBuilderFactory
stepBuilders()
Defines theStepBuilderFactory
bean.static StepScope
stepScope()
Defines theStepScope
bean.
-
-
-
Method Detail
-
jobBuilders
@Bean public JobBuilderFactory jobBuilders()
Defines theJobBuilderFactory
bean.- Returns:
- the
JobBuilderFactory
bean.
-
stepBuilders
@Bean public StepBuilderFactory stepBuilders()
Defines theStepBuilderFactory
bean.- Returns:
- the
StepBuilderFactory
bean.
-
jobRepository
@Bean public JobRepository jobRepository()
Defines theNullJobRepository
bean which will be aInMemoryJobRepository
.- Returns:
- the
JobRepository
bean.
-
jobLauncher
@Bean public JobLauncher jobLauncher()
Defines theJobLauncher
bean.- Returns:
- the
JobLauncher
bean.
-
jobExplorer
@Bean public JobExplorer jobExplorer()
Defines theJobRepository
bean which will be aInMemoryJobExplorer
.- Returns:
- the
JobRepository
bean.
-
jobRegistry
@Bean public JobRegistry jobRegistry()
Defines theJobRegistry
bean.- Returns:
- the
JobRegistry
bean.
-
stepScope
@Bean public static StepScope stepScope()
Defines theStepScope
bean.- Returns:
- the
StepScope
bean.
-
-