FileDocCategorySizeDatePackage
EJBContainerInvocationWrapper.javaAPI DocJBoss 4.2.14575Fri Jul 13 20:53:58 BST 2007org.jboss.ejb3

EJBContainerInvocationWrapper

public class EJBContainerInvocationWrapper extends EJBContainerInvocation
This wrapper class allows you to insert a chain of interceptors into the middle of a call stack.
author
Bill Burke
version
$Revision: 60233 $

Fields Summary
private static final long
serialVersionUID
private static final Logger
log
protected EJBContainerInvocation
wrapped
Constructors Summary
public EJBContainerInvocationWrapper(EJBContainerInvocation wrapped, org.jboss.aop.advice.Interceptor[] interceptors)


        
   
      this.wrapped = wrapped;
      this.interceptors = interceptors;
   
Methods Summary
public voidaddResponseAttachment(java.lang.Object key, java.lang.Object val)

      wrapped.addResponseAttachment(key, val);
   
public org.jboss.aop.joinpoint.Invocationcopy()

      return wrapped.copy();
   
public AgetAdvisor()

      return wrapped.getAdvisor();
   
public java.lang.Object[]getArguments()

      return wrapped.getArguments();
   
public java.lang.ObjectgetMetaData(java.lang.Object key, java.lang.Object attr)

      return wrapped.getMetaData(key, attr);
   
public org.jboss.aop.metadata.SimpleMetaDatagetMetaData()

      return wrapped.getMetaData();
   
public java.lang.reflect.MethodgetMethod()

      return wrapped.getMethod();
   
public longgetMethodHash()

      return wrapped.getMethodHash();
   
public java.lang.ObjectgetResponseAttachment(java.lang.Object key)

      return wrapped.getResponseAttachment(key);
   
public java.util.MapgetResponseContextInfo()

      return wrapped.getResponseContextInfo();
   
public java.lang.ObjectgetTargetObject()

      return wrapped.getTargetObject();
   
public org.jboss.aop.joinpoint.InvocationgetWrapper(org.jboss.aop.advice.Interceptor[] newchain)

      return wrapped.getWrapper(newchain);
   
public java.lang.ObjectinvokeNext()

      if (currentInterceptor < interceptors.length)
      {
         try
         {
            return interceptors[currentInterceptor++].invoke(this);
         }
         finally
         {
            // so that interceptors like clustering can reinvoke down the chain
            currentInterceptor--;
         }
      }
      try
      {
         return wrapped.invokeNext();
      }
      finally
      {
         responseContextInfo = wrapped.getResponseContextInfo();
      }
   
public java.lang.ObjectinvokeNext(org.jboss.aop.advice.Interceptor[] newInterceptors)

      return wrapped.invokeNext(newInterceptors);
   
public java.lang.ObjectresolveAnnotation(java.lang.Class annotation)

      return wrapped.resolveAnnotation(annotation);
   
public java.lang.ObjectresolveClassAnnotation(java.lang.Class annotation)

      return wrapped.resolveClassAnnotation(annotation);
   
public java.lang.ObjectresolveClassMetaData(java.lang.Object key, java.lang.Object attr)

      return wrapped.resolveClassMetaData(key, attr);
   
public voidsetArguments(java.lang.Object[] args)

      wrapped.setArguments(args);
   
public voidsetMetaData(org.jboss.aop.metadata.SimpleMetaData data)

      wrapped.setMetaData(data);
   
public voidsetResponseContextInfo(java.util.Map responseContextInfo)

      wrapped.setResponseContextInfo(responseContextInfo);
   
public voidsetTargetObject(java.lang.Object targetObject)

      wrapped.setTargetObject(targetObject);