Package org.jboss.as.jpa.container
Class SFSBCallStack
- java.lang.Object
-
- org.jboss.as.jpa.container.SFSBCallStack
-
public class SFSBCallStack extends Object
For tracking of SFSB call stack on a per thread basis. When a SFSB with an extended persistence context (XPC) is injected, the SFSB call stack is searched for a XPC that can be inherited from.- Author:
- Scott Marlow
-
-
Constructor Summary
Constructors Constructor Description SFSBCallStack()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbeginSfsbCreation()called from SFSBPreCreateInterceptor, before bean creationstatic ArrayList<Map<String,ExtendedEntityManager>>currentSFSBCallStack()Return the current entity manager call stackstatic Map<String,ExtendedEntityManager>currentSFSBCallStackInvocation()return for just the current entity manager invocationstatic voidendSfsbCreation()called from SFSBPreCreateInterceptor, after bean creationstatic intgetSFSBCreationBeanNestingLevel()static Map<String,ExtendedEntityManager>popCall()Pops the current SFSB invocation off the invocation call stackstatic voidpushCall(Map<String,ExtendedEntityManager> entityManagers)Push the passed SFSB context handle onto the invocation call stack
-
-
-
Method Detail
-
getSFSBCreationBeanNestingLevel
public static int getSFSBCreationBeanNestingLevel()
-
beginSfsbCreation
public static void beginSfsbCreation()
called from SFSBPreCreateInterceptor, before bean creation
-
endSfsbCreation
public static void endSfsbCreation()
called from SFSBPreCreateInterceptor, after bean creation
-
currentSFSBCallStack
public static ArrayList<Map<String,ExtendedEntityManager>> currentSFSBCallStack()
Return the current entity manager call stack- Returns:
- call stack (may be empty but never null)
-
currentSFSBCallStackInvocation
public static Map<String,ExtendedEntityManager> currentSFSBCallStackInvocation()
return for just the current entity manager invocation- Returns:
-
pushCall
public static void pushCall(Map<String,ExtendedEntityManager> entityManagers)
Push the passed SFSB context handle onto the invocation call stack- Parameters:
entityManagers- the entity manager map
-
popCall
public static Map<String,ExtendedEntityManager> popCall()
Pops the current SFSB invocation off the invocation call stack- Returns:
- the entity manager map
-
-