public class SFSBCallStack extends Object
Constructor and Description |
---|
SFSBCallStack() |
Modifier and Type | Method and Description |
---|---|
static void |
beginSfsbCreation()
called from SFSBPreCreateInterceptor, before bean creation
|
static ArrayList<Map<String,ReferenceCountedEntityManager>> |
currentSFSBCallStack()
Return the current entity manager map
|
static void |
endSfsbCreation()
called from SFSBPreCreateInterceptor, after bean creation
|
static void |
extendedPersistenceContextCreated(String scopedPuName,
ReferenceCountedEntityManager entityManager)
register the entity manager map so it is accessible to other SFSB's during the creation process
|
static ReferenceCountedEntityManager |
findPersistenceContext(String puScopedName)
For the current thread, look at the call stack (containing entity manager maps) and return the first extended
persistence context that is based on puScopedName.
|
static Map<String,ReferenceCountedEntityManager> |
popCall()
Pops the current SFSB invocation off the invocation call stack
|
static void |
pushCall(Map<String,ReferenceCountedEntityManager> entityManagers)
Push the passed SFSB context handle onto the invocation call stack
|
public static void beginSfsbCreation()
public static void endSfsbCreation()
public static void extendedPersistenceContextCreated(String scopedPuName, ReferenceCountedEntityManager entityManager)
scopedPuName
- entityManager
- public static ReferenceCountedEntityManager findPersistenceContext(String puScopedName)
puScopedName
- Scoped pu namepublic static ArrayList<Map<String,ReferenceCountedEntityManager>> currentSFSBCallStack()
public static void pushCall(Map<String,ReferenceCountedEntityManager> entityManagers)
entityManagers
- the entity manager mappublic static Map<String,ReferenceCountedEntityManager> popCall()
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.