# Uses of Class
org.springframework.batch.core.scope.context.JobContext

Packages that use JobContext
Package
Description
org.springframework.batch.core.scope.context
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 JobContext
  Modifier and Type
  Method
  Description
  `static JobContext`
  JobSynchronizationManager.`getContext()`
  Getter for the current context if there is one, otherwise returns `null`.
  `static JobContext`
  JobSynchronizationManager.`register(JobExecution JobExecution)`
  Register a context with the current thread - always put a matching `JobSynchronizationManager.close()` call in a finally block to ensure that the correct context is available in the enclosing block.