com.wideplay.warp.persist.internal
Class ManagedContext
java.lang.Object
com.wideplay.warp.persist.internal.ManagedContext
public class ManagedContext
- extends Object
Utility analogous to Hibernate's ManagedSessionContext
,
but not limited to a single persistence engine.
In UnitOfWork.REQUEST
, this class is used by the
WorkManager
, in UnitOfWork.TRANSACTION
by
the context artifact (like EntityManager, ObjectContainer, ...) provider and
local transaction interceptor.
This class implements the typesafe heterogeneous container pattern.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bind
public static <T> T bind(Class<T> type,
Object key,
T em)
unbind
public static <T> T unbind(Class<T> type,
Object key)
getBind
public static <T> T getBind(Class<T> type,
Object key)
hasBind
public static <T> boolean hasBind(Class<T> type,
Object key)