FileDocCategorySizeDatePackage
ProducerProxy.javaAPI DocJBoss 4.2.12253Fri Jul 13 20:53:56 BST 2007org.jboss.ejb3.mdb

ProducerProxy

public class ProducerProxy extends Object implements Serializable, InvocationHandler
Comment
author
Bill Burke
version
$Revision: 60233 $

Fields Summary
private static final long
serialVersionUID
protected ProducerManager
producer
protected org.jboss.aop.advice.Interceptor[]
interceptors
Constructors Summary
public ProducerProxy(ProducerManager producer, org.jboss.aop.advice.Interceptor[] interceptors)


       
   
      this.producer = producer;
      this.interceptors = interceptors;
   
public ProducerProxy()

   
Methods Summary
public java.lang.Objectinvoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)

      if (method.getName().equals("getProducerManager"))
      {
         return producer;
      }
      long hash = MethodHashing.calculateHash(method);
      MethodInvocation sri = new MethodInvocation(interceptors, hash, method, method, null);
      sri.setArguments(args);
      return sri.invokeNext();