Package liquibase

Class ThreadLocalScopeManager


  • public class ThreadLocalScopeManager
    extends ScopeManager
    An alternative to SingletonScopeManager which manages a separate Scope per thread.

    Integrations that would prefer to use this scope manager can call
    Scope.setScopeManager(new ThreadLocalScopeManager())
    .

    The value of Scope.getCurrentScope() at the time of the ThreadLocalScopeManger's creation will be the basis of all scopes created after setScopeManager() is changed, so you will generally want to setScopeManager as soon as possible.