public final class DetachedSessionContextImplementor extends Object
On contrary to SessionContextImplementor,
this context is expected to be detached from the actual session,
allowing it to be used after the session was closed.
The main downside is that this context cannot be used
everywhere SessionContextImplementor can.
In particular, it cannot be used when creating document-related
work plans
or work executors
because these may need access to the session.
| Modifier and Type | Method and Description |
|---|---|
MappingContextImplementor |
getMappingContext() |
String |
getTenantIdentifier() |
static DetachedSessionContextImplementor |
of(SessionContextImplementor sessionContext) |
public static DetachedSessionContextImplementor of(SessionContextImplementor sessionContext)
public MappingContextImplementor getMappingContext()
public String getTenantIdentifier()
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.