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 theInMemoryJobStoragebean.Defines theJobRepositorybean which will be aInMemoryJobExplorer.Defines theJobLauncherbean.Defines theJobRegistrybean.Defines theJobRepositorybean which will be aInMemoryJobRepository.
-
Constructor Details
-
InMemoryBatchConfiguration
public InMemoryBatchConfiguration()Constructs a newInMemoryBatchConfiguration.
-
-
Method Details
-
inMemoryJobStorage
Defines theInMemoryJobStoragebean.- Returns:
- the
InMemoryJobStoragebean.
-
jobRepository
Defines theJobRepositorybean 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.
-