Tabnine Logo
InvocationHelper.isInjection
Code IndexAdd Tabnine to your IDE (free)

How to use
isInjection
method
in
org.jboss.ejb3.interceptors.container.InvocationHelper

Best Java code snippets using org.jboss.ejb3.interceptors.container.InvocationHelper.isInjection (Showing top 2 results out of 315)

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

public TimerService getTimerService() throws IllegalStateException
{
 Invocation invocation = CurrentInvocation.getCurrentInvocation();
 if(InvocationHelper.isInjection(invocation))
   throw new IllegalStateException("getTimerService() not allowed during injection (EJB3 4.5.2)");
 return getContainer().getTimerService();
}
origin: org.jboss.ejb3/jboss-ejb3-transactions

public static UserTransaction getUserTransaction(BeanContext<?> ctx)
{
 Invocation invocation = CurrentInvocation.getCurrentInvocation();
 
 // TODO: also not allowed during construction
 
 if(InvocationHelper.isInjection(invocation))
   throw new IllegalStateException("getUserTransaction() not allowed during injection (EJB3 4.4.1 & 4.5.2)");
 
 Advisor advisor = invocation.getAdvisor();
 TransactionManagementType type = TxUtil.getTransactionManagementType(advisor);
 if (type != TransactionManagementType.BEAN) throw new IllegalStateException("Container " + advisor.getName() + ": it is illegal to inject UserTransaction into a CMT bean");
 return new UserTransactionImpl();   
}
org.jboss.ejb3.interceptors.containerInvocationHelperisInjection

Popular methods of InvocationHelper

  • isLifecycleCallback

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • 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