Package org.jboss.as.jpa.container
Class SFSBCallStack
java.lang.Object
org.jboss.as.jpa.container.SFSBCallStack
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcalled from SFSBPreCreateInterceptor, before bean creationstatic ArrayList<Map<String,ExtendedEntityManager>> Return the current entity manager call stackstatic Map<String,ExtendedEntityManager> return for just the current entity manager invocationstatic voidcalled from SFSBPreCreateInterceptor, after bean creationstatic intstatic 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
-
Constructor Details
-
SFSBCallStack
public SFSBCallStack()
-
-
Method Details
-
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
Return the current entity manager call stack- Returns:
- call stack (may be empty but never null)
-
currentSFSBCallStackInvocation
return for just the current entity manager invocation- Returns:
-
pushCall
Push the passed SFSB context handle onto the invocation call stack- Parameters:
entityManagers- the entity manager map
-
popCall
Pops the current SFSB invocation off the invocation call stack- Returns:
- the entity manager map
-