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

EJBContainerInvocation

public class EJBContainerInvocation extends org.jboss.aop.joinpoint.MethodInvocation
Representation of an EJB invocation on the serverside
author
Bill Burke
version
$Revision: 60233 $

Fields Summary
private static final long
serialVersionUID
protected T
ctx
private BeanContextLifecycleCallback
callback
Constructors Summary
public EJBContainerInvocation(org.jboss.aop.MethodInfo info)


     
   
      super(info, info.getInterceptors());
   
public EJBContainerInvocation(org.jboss.aop.advice.Interceptor[] interceptors, long methodHash, Method advisedMethod, Method unadvisedMethod, org.jboss.aop.Advisor advisor)

      super(interceptors, methodHash, advisedMethod, unadvisedMethod, advisor);
   
public EJBContainerInvocation()

      super(null, null);
   
Methods Summary
public org.jboss.aop.joinpoint.Invocationcopy()

      EJBContainerInvocation<A, T> wrapper = new EJBContainerInvocation<A, T>(interceptors, methodHash, advisedMethod, unadvisedMethod, advisor);
      wrapper.metadata = this.metadata;
      wrapper.currentInterceptor = this.currentInterceptor;
      wrapper.setTargetObject(this.getTargetObject());
      wrapper.setArguments(this.getArguments());
      wrapper.setBeanContext(this.ctx);
      wrapper.callback = this.callback;
      return wrapper;
   
public AgetAdvisor()

      return (A) super.getAdvisor();
   
public TgetBeanContext()

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

      return new EJBContainerInvocationWrapper<A, T>(this, newchain);
   
public voidsetBeanContext(T beanCtx)

      if(beanCtx != null)
      {
         ctx = beanCtx;
         
         if(callback != null)
            callback.attached(beanCtx);
      }
      else
      {
         if(callback != null)
            callback.released(ctx);
         
         ctx = null;
      }
   
public voidsetContextCallback(BeanContextLifecycleCallback callback)

      this.callback = callback;