Uses of Class
org.springframework.batch.core.scope.context.JobContext
Packages that use 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
Methods in org.springframework.batch.core.scope.context that return JobContextModifier and TypeMethodDescriptionstatic JobContextJobSynchronizationManager.getContext()Getter for the current context if there is one, otherwise returnsnull.static JobContextJobSynchronizationManager.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.