Example usage for Java org.springframework.batch.core.scope.context StepSynchronizationManager fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close() Method for unregistering the current context - should always and only be used by in conjunction with a matching #register(StepExecution) to ensure that #getContext() always returns the correct value. |
StepContext | getContext() Getter for the current context if there is one, otherwise returns null . |
StepContext | register(StepExecution stepExecution) Register a context with the current thread - always put a matching #close() call in a finally block to ensure that the correct context is available in the enclosing block. |
void | release() A convenient "deep" close operation. |