Uses of Class
org.springframework.batch.core.scope.context.StepContext
Package
Description
Implementation of the contexts for each of the custom bean scopes in Spring Batch (Job
and Step).
-
Uses of StepContext in org.springframework.batch.core.scope.context
Modifier and TypeMethodDescriptionstatic StepContext
StepSynchronizationManager.getContext()
Getter for the current context if there is one, otherwise returnsnull
.ChunkContext.getStepContext()
static StepContext
StepSynchronizationManager.register
(StepExecution stepExecution) Register a context with the current thread - always put a matchingStepSynchronizationManager.close()
call in a finally block to ensure that the correct context is available in the enclosing block.