Class InMemoryBatchConfiguration
java.lang.Object
com.github.marschall.spring.batch.inmemory.InMemoryBatchConfiguration
@Configuration
@Import(org.springframework.batch.core.configuration.support.ScopeConfiguration.class)
public class InMemoryBatchConfiguration
extends Object
An alternative to
DefaultBatchConfiguration
that sets up Spring Batch
with a in-memory JobRepository
and JobExplorer
and a default
JobLauncher
and JobRegistry
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDefines theInMemoryJobStorage
bean.Defines theJobRepository
bean which will be aInMemoryJobExplorer
.Defines theJobLauncher
bean.Defines theJobRegistry
bean.Defines theJobRepository
bean which will be aInMemoryJobRepository
.
-
Constructor Details
-
InMemoryBatchConfiguration
public InMemoryBatchConfiguration()Constructs a newInMemoryBatchConfiguration
.
-
-
Method Details
-
inMemoryJobStorage
Defines theInMemoryJobStorage
bean.- Returns:
- the
InMemoryJobStorage
bean.
-
jobRepository
Defines theJobRepository
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.
-