FileDocCategorySizeDatePackage
PojiProxy.javaAPI DocJBoss 4.2.12558Fri Jul 13 21:02:26 BST 2007org.jboss.aspects.remoting

PojiProxy

public class PojiProxy extends Object implements InvocationHandler, Serializable
comment
author
Bill Burke

Fields Summary
private static final long
serialVersionUID
private Object
oid
private org.jboss.remoting.InvokerLocator
uri
private org.jboss.aop.advice.Interceptor[]
interceptors
Constructors Summary
public PojiProxy(Object oid, org.jboss.remoting.InvokerLocator uri, org.jboss.aop.advice.Interceptor[] interceptors)


         
   
      this.oid = oid;
      this.uri = uri;
      this.interceptors = interceptors;
   
Methods Summary
public java.lang.Objectinvoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)

      long hash = MethodHashing.calculateHash(method);
      MethodInvocation sri = new MethodInvocation(interceptors, hash, method, method, null);
      sri.setArguments(args);
      sri.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, oid, PayloadKey.AS_IS);
      sri.getMetaData().addMetaData(InvokeRemoteInterceptor.REMOTING, InvokeRemoteInterceptor.INVOKER_LOCATOR, uri, PayloadKey.AS_IS);
      sri.getMetaData().addMetaData(InvokeRemoteInterceptor.REMOTING, InvokeRemoteInterceptor.SUBSYSTEM, "AOP", PayloadKey.AS_IS);
      return sri.invokeNext();