congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
NullInterceptor
Code IndexAdd Tabnine to your IDE (free)

How to use
NullInterceptor
in
org.jboss.ejb3.tx

Best Java code snippets using org.jboss.ejb3.tx.NullInterceptor (Showing top 3 results out of 315)

origin: org.jboss.ejb3/jboss-ejb3-transactions

  public Object createPerJoinpoint(Advisor advisor, Joinpoint jp)
  {
   // We have to do this until AOP supports matching based on annotation attributes
   TransactionManagementType type = TxUtil.getTransactionManagementType(advisor);
   if (type != TransactionManagementType.BEAN)
     return new NullInterceptor();
   
   TransactionManager tm = TxUtil.getTransactionManager();
   boolean stateful = advisor.resolveAnnotation(Stateful.class) != null;
   // Both MessageDriven and Stateless are stateless
   if(stateful)
     return new StatefulBMTInterceptor(tm);
   else
     return new StatelessBMTInterceptor(tm);
  }
}
origin: org.jboss.ejb3/jboss-ejb3-core

  public Object createPerClass(Advisor advisor)
  {
   EJBContainer container = EJBContainer.getEJBContainer(advisor);

   Object domain = null;
   try
   {
     InitialContext ctx = container.getInitialContext();
     SecurityDomain securityDomain = (SecurityDomain) advisor.resolveAnnotation(SecurityDomain.class);
     if (securityDomain != null)
     {
      String domainName = securityDomain.value();
      domain = SecurityDomainManager.getSecurityManager(domainName, ctx);
     }
   }
   catch (NamingException e)
   {
     throw new RuntimeException(e);
   }
   
   Interceptor interceptor = new NullInterceptor();
   if (domain != null)
   {
     interceptor = new RunAsSecurityInterceptorv2(container, getRunAsIdentity(container));
   }
   return interceptor;
  }  
}
origin: org.jboss.ejb3/jboss-ejb3-transactions

return new NullInterceptor();
org.jboss.ejb3.txNullInterceptor

Javadoc

Comment

Most used methods

  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Best IntelliJ plugins
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