FileDocCategorySizeDatePackage
AsynchProxyInterceptor.javaAPI DocJBoss 4.2.11944Fri Jul 13 21:02:26 BST 2007org.jboss.aspects.asynch

AsynchProxyInterceptor

public class AsynchProxyInterceptor extends Object implements Serializable, org.jboss.aop.advice.Interceptor
Comment
author
Bill Burke
version
$Revision: 57186 $

Fields Summary
private static final long
serialVersionUID
private FutureHolder
holder
Constructors Summary
public AsynchProxyInterceptor(FutureHolder holder)


     
   
      this.holder = holder;
   
Methods Summary
public java.lang.StringgetName()

      return "AsynchProxyInterceptor";
   
public java.lang.Objectinvoke(org.jboss.aop.joinpoint.Invocation invocation)

      Object rtn = invocation.invokeNext();
      Future future = (Future) invocation.getResponseAttachment(AsynchAspect.FUTURE);
      if (future != null)
      {
         holder.setFuture(future);
      }
      return rtn;