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 theJobRepository
bean which will be aInMemoryJobExplorer
.Defines theJobLauncher
bean.Defines theJobRegistry
bean.Defines theNullJobRepository
bean which will be aInMemoryJobRepository
.
-
Constructor Details
-
NullBatchConfiguration
public NullBatchConfiguration()
-
-
Method Details
-
jobRepository
Defines theNullJobRepository
bean which will be aInMemoryJobRepository
.- Returns:
- the
JobRepository
bean.
-
jobLauncher
Defines theJobLauncher
bean.- Returns:
- the
JobLauncher
bean.
-
jobExplorer
Defines theJobRepository
bean which will be aInMemoryJobExplorer
.- Returns:
- the
JobRepository
bean.
-
jobRegistry
Defines theJobRegistry
bean.- Returns:
- the
JobRegistry
bean.
-