Tabnine Logo
SFSBCallStack.getSFSBCreationBeanNestingLevel
Code IndexAdd Tabnine to your IDE (free)

How to use
getSFSBCreationBeanNestingLevel
method
in
org.jboss.as.jpa.container.SFSBCallStack

Best Java code snippets using org.jboss.as.jpa.container.SFSBCallStack.getSFSBCreationBeanNestingLevel (Showing top 6 results out of 315)

origin: org.jboss.eap/wildfly-jpa

@Override
public void registerExtendedPersistenceContext(String scopedPuName, ExtendedEntityManager entityManager) {
  if (SFSBCallStack.getSFSBCreationBeanNestingLevel() > 0) {
    SFSBCallStack.getSFSBCreationTimeInjectedXPCs(scopedPuName).registerDeepInheritance(scopedPuName, entityManager);
  }
}
origin: org.wildfly/wildfly-jpa

@Override
public void registerExtendedPersistenceContext(String scopedPuName, ExtendedEntityManager entityManager) {
  if (SFSBCallStack.getSFSBCreationBeanNestingLevel() > 0) {
    SFSBCallStack.getSFSBCreationTimeInjectedXPCs(scopedPuName).registerDeepInheritance(scopedPuName, entityManager);
  }
}
origin: org.wildfly/wildfly-jpa

@Override
public void registerExtendedPersistenceContext(String scopedPuName, ExtendedEntityManager entityManager) {
  if (SFSBCallStack.getSFSBCreationBeanNestingLevel() > 0) {
    SFSBCallStack.getSFSBCreationTimeInjectedXPCs(scopedPuName).registerShallowInheritance(scopedPuName, entityManager);
  }
}
origin: org.jboss.eap/wildfly-jpa

@Override
public void registerExtendedPersistenceContext(String scopedPuName, ExtendedEntityManager entityManager) {
  if (SFSBCallStack.getSFSBCreationBeanNestingLevel() > 0) {
    SFSBCallStack.getSFSBCreationTimeInjectedXPCs(scopedPuName).registerShallowInheritance(scopedPuName, entityManager);
  }
}
origin: org.jboss.eap/wildfly-jpa

  @Override
  public ExtendedEntityManager findExtendedPersistenceContext(String puScopedName) {
    ExtendedEntityManager result = null;
    // if current bean is injected from a parent bean that is also being created, current bean
    // can inherit only from the parent bean.
    if (SFSBCallStack.getSFSBCreationBeanNestingLevel() > 1) {
      SFSBInjectedXPCs currentInjectedXPCs = SFSBCallStack.getSFSBCreationTimeInjectedXPCs(puScopedName);
      result = currentInjectedXPCs.findExtendedPersistenceContextShallowInheritance(puScopedName);
    } else {
      // else inherit from parent bean that created current bean (if any).  The parent bean is the one
      // that did a JNDI lookup of the current bean.
      Map<String, ExtendedEntityManager> handle = SFSBCallStack.getCurrentCall();
      if (handle != null) {
        result = handle.get(puScopedName);
        if (result != null) {
          return result;
        }
      }
    }
    return result;

  }
}
origin: org.wildfly/wildfly-jpa

  @Override
  public ExtendedEntityManager findExtendedPersistenceContext(String puScopedName) {
    ExtendedEntityManager result = null;
    // if current bean is injected from a parent bean that is also being created, current bean
    // can inherit only from the parent bean.
    if (SFSBCallStack.getSFSBCreationBeanNestingLevel() > 1) {
      SFSBInjectedXPCs currentInjectedXPCs = SFSBCallStack.getSFSBCreationTimeInjectedXPCs(puScopedName);
      result = currentInjectedXPCs.findExtendedPersistenceContextShallowInheritance(puScopedName);
    } else {
      // else inherit from parent bean that created current bean (if any).  The parent bean is the one
      // that did a JNDI lookup of the current bean.
      Map<String, ExtendedEntityManager> handle = SFSBCallStack.getCurrentCall();
      if (handle != null) {
        result = handle.get(puScopedName);
        if (result != null) {
          return result;
        }
      }
    }
    return result;

  }
}
org.jboss.as.jpa.containerSFSBCallStackgetSFSBCreationBeanNestingLevel

Popular methods of SFSBCallStack

  • beginSfsbCreation
    called from SFSBPreCreateInterceptor, before bean creation
  • currentSFSBCallStack
    Return the current entity manager call stack
  • currentSFSBCallStackInvocation
    return for just the current entity manager invocation
  • endSfsbCreation
    called from SFSBPreCreateInterceptor, after bean creation
  • getCurrentCall
    gets the current SFSB invocation off the invocation call stack
  • getSFSBCreationTimeInjectedXPCs
  • popCall
    Pops the current SFSB invocation off the invocation call stack
  • pushCall
    Push the passed SFSB context handle onto the invocation call stack

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Menu (java.awt)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Path (java.nio.file)
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now