nl.talsmasoftware.context.ContextManager<T>nl.talsmasoftware.context.ContextManagerpublic interface ContextManager<T>
extends nl.talsmasoftware.context.ContextManager<T>
Concrete implementations can be registered by providing an implementation class, along with a class declaration in
META-INF/services/nl.talsmasoftware.concurrency.ContextManager
That will take care of any active context being captured in ContextSnapshot instances managed by the
ContextManagers utility class.
| Modifier and Type | Method | Description |
|---|---|---|
Context<T> |
getActiveContext() |
Deprecated.
This method returns the current context, or
null if no context is currently active. |
Context<T> |
initializeNewContext(T value) |
Deprecated.
This method initializes a new context containing the specified
value. |
Context<T> initializeNewContext(T value)
value.
Whether the value is allowed to be null is up to the implementation.
initializeNewContext in interface nl.talsmasoftware.context.ContextManager<T>value - The value to initialize a new context for
(which should be closed by the caller at the end of its lifecycle).Context<T> getActiveContext()
null if no context is currently active.getActiveContext in interface nl.talsmasoftware.context.ContextManager<T>null if there is no context currently active.Copyright © 2016–2018 Talsma ICT. All rights reserved.