Class NullBatchConfiguration
java.lang.Object
com.github.marschall.spring.batch.inmemory.NullBatchConfiguration
@Configuration
@Import(org.springframework.batch.core.configuration.support.ScopeConfiguration.class)
public class NullBatchConfiguration
extends Object
An alternative to
DefaultBatchConfiguration that sets up Spring Batch
with a null JobRepository and JobExplorer and a default
JobLauncher and JobRegistry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDefines theJobRepositorybean which will be aInMemoryJobExplorer.Defines theJobLauncherbean.Defines theJobRegistrybean.Defines theNullJobRepositorybean which will be aInMemoryJobRepository.
-
Constructor Details
-
NullBatchConfiguration
public NullBatchConfiguration()
-
-
Method Details
-
jobRepository
Defines theNullJobRepositorybean which will be aInMemoryJobRepository.- Returns:
- the
JobRepositorybean.
-
jobLauncher
Defines theJobLauncherbean.- Returns:
- the
JobLauncherbean.
-
jobExplorer
Defines theJobRepositorybean which will be aInMemoryJobExplorer.- Returns:
- the
JobRepositorybean.
-
jobRegistry
Defines theJobRegistrybean.- Returns:
- the
JobRegistrybean.
-