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

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

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

origin: org.wildfly/wildfly-jpa

  @Override
  public Object processInvocation(InterceptorContext context) throws Exception {
    final ComponentInstance componentInstance = context.getPrivateData(ComponentInstance.class);
    ManagedReference entityManagerRef = (ManagedReference) componentInstance.getInstanceData(SFSBInvocationInterceptor.CONTEXT_KEY);
    if(entityManagerRef != null) {
      Map<String, ExtendedEntityManager> entityManagers = (Map<String, ExtendedEntityManager>) entityManagerRef.getInstance();
      SFSBCallStack.pushCall(entityManagers);
    }
    try {
      return context.proceed();   // call the next interceptor or target
    } finally {
      if(entityManagerRef != null) {
        SFSBCallStack.popCall();
      }
    }
  }
}
origin: org.jboss.eap/wildfly-jpa

  @Override
  public Object processInvocation(InterceptorContext context) throws Exception {
    final ComponentInstance componentInstance = context.getPrivateData(ComponentInstance.class);
    ManagedReference entityManagerRef = (ManagedReference) componentInstance.getInstanceData(SFSBInvocationInterceptor.CONTEXT_KEY);
    if(entityManagerRef != null) {
      Map<String, ExtendedEntityManager> entityManagers = (Map<String, ExtendedEntityManager>) entityManagerRef.getInstance();
      SFSBCallStack.pushCall(entityManagers);
    }
    try {
      return context.proceed();   // call the next interceptor or target
    } finally {
      if(entityManagerRef != null) {
        SFSBCallStack.popCall();
      }
    }
  }
}
org.jboss.as.jpa.containerSFSBCallStackpushCall

Javadoc

Push the passed SFSB context handle onto the invocation call stack

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
  • getSFSBCreationBeanNestingLevel
  • getSFSBCreationTimeInjectedXPCs
  • popCall
    Pops the current SFSB invocation off the invocation call stack

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • JTable (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Table (org.hibernate.mapping)
    A relational table
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 12 Jupyter Notebook extensions
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