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

Packages that use StepContext
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 StepContext in org.springframework.batch.core.scope.context

  Methods in org.springframework.batch.core.scope.context that return StepContext
  Modifier and Type
  Method
  Description
  `static StepContext`
  StepSynchronizationManager.`getContext()`
  Getter for the current context if there is one, otherwise returns `null`.
  `StepContext`
  ChunkContext.`getStepContext()`
  `static StepContext`
  StepSynchronizationManager.`register(StepExecution stepExecution)`
  Register a context with the current thread - always put a matching `StepSynchronizationManager.close()` call in a finally block to ensure that the correct context is available in the enclosing block.
  Constructors in org.springframework.batch.core.scope.context with parameters of type StepContext
  Modifier
  Constructor
  Description
  ``
  `ChunkContext(StepContext stepContext)`