Codota Logo
Invocation.setResponseContextInfo
Code IndexAdd Codota to your IDE (free)

How to use
setResponseContextInfo
method
in
org.jboss.aop.joinpoint.Invocation

Best Java code snippets using org.jboss.aop.joinpoint.Invocation.setResponseContextInfo (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: org.jboss.ejb3/jboss-ejb3-core

public Object invoke(Invocation invocation) throws Throwable
{
 if (isLocal())
 {
   Object oid = invocation.getMetaData(Dispatcher.DISPATCHER, Dispatcher.OID);
   if (Dispatcher.singleton.isRegistered(oid))
   {
    InvocationResponse response = Dispatcher.singleton.invoke(invocation);
    invocation.setResponseContextInfo(response.getContextInfo());
    return response.getResponse();
   }
 }
 return invocation.invokeNext();
}
origin: org.jboss.ejb3/jboss-ejb3-core

protected Object invokeLocal(Invocation invocation, Container container) throws Throwable
{
 Invocation copy = marshallOrPass(invocation, Invocation.class);
 copy.getMetaData().addMetaData(IS_LOCAL, IS_LOCAL, Boolean.TRUE, PayloadKey.AS_IS);
 try
 {
   // Invoke upon the container
   SessionContainer sc = (SessionContainer) container;
   InvocationResponse response = sc.dynamicInvoke(copy);
   // it could really have been a copy
   invocation.setResponseContextInfo(response.getContextInfo());
   return marshallOrPass(response.getResponse(), Object.class);
 }
 // TODO: Either Throwable (as it used to be) or Exception (which is better)
 catch(Throwable t)
 {
   throw marshallOrPass(t, Throwable.class);
 }
 finally
 {
   copy.getMetaData().removeMetaData(IS_LOCAL, IS_LOCAL);
 }
}
org.jboss.aop.joinpointInvocationsetResponseContextInfo

Popular methods of Invocation

  • invokeNext
    Invoke on the next interceptor in the chain. If this is already the end of the chain, reflection wil
  • getMetaData
    This method resolves untyped metadata based on the context of the invocation. It iterates through it
  • getTargetObject
  • getAdvisor
  • addResponseAttachment
  • copy
    Copies complete state of Invocation object so that it could possibly be reused in a spawned thread.
  • getInterceptors
  • getResponseContextInfo
  • getWrapper
    Get a wrapper invocation object that can insert a new chain of interceptors at runtime to the invoca
  • setTargetObject

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now