nl.talsmasoftware.context.ContextManagerspublic final class ContextManagers extends Object
take snapshots of all contexts from
known ContextManager implementations.
Such a snapshot can be passed to a background task to allow the context to be
reactivated in that background thread, until it gets
closed again (preferably in a try-with-resources construct).
| Modifier and Type | Method | Description |
|---|---|---|
static ContextSnapshot |
createContextSnapshot() |
Deprecated.
This is the old implementation. Please swith to
nl.talsmasoftware.context.ContextManagers |
public static ContextSnapshot createContextSnapshot()
nl.talsmasoftware.context.ContextManagersactive context from all known ContextManager
implementations.
This snapshot is returned as a single object that can be temporarily
reactivated. Don't forget to close the reactivated
context once you're done, preferably in a try-with-resources construct.
ContextManagers.createContextSnapshot(),
LegacyContextManagerBridgeCopyright © 2016–2018 Talsma ICT. All rights reserved.