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