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 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

      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