org.jboss.aspects.remoting
Class PojiProxy

java.lang.Object
  extended by org.jboss.aspects.remoting.PojiProxy
All Implemented Interfaces:
Serializable, InvocationHandler

public class PojiProxy
extends Object
implements Serializable, InvocationHandler

comment

Author:
Bill Burke, ALR Maintain only
See Also:
Serialized Form

Constructor Summary
PojiProxy(Object oid, org.jboss.remoting.InvokerLocator uri, org.jboss.aop.advice.Interceptor[] interceptors)
           
 
Method Summary
protected  void addArgumentsToInvocation(org.jboss.aop.joinpoint.MethodInvocation invocation, Object[] originalArguments)
          Sets the specified arguments on the specified invocation.
protected  void addMetadataToInvocation(org.jboss.aop.joinpoint.MethodInvocation methodInvocation)
          Adds metadata to the specified MethodInvocation before invocation is called.
protected  org.jboss.aop.joinpoint.MethodInvocation constructMethodInvocation(Method method, Object[] args)
          Constructs a MethodInvocation from the specified Method and arguments
protected  org.jboss.aop.advice.Interceptor[] getInterceptors()
           
protected  Object getOid()
           
protected  org.jboss.remoting.InvokerLocator getUri()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PojiProxy

public PojiProxy(Object oid,
                 org.jboss.remoting.InvokerLocator uri,
                 org.jboss.aop.advice.Interceptor[] interceptors)
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

constructMethodInvocation

protected org.jboss.aop.joinpoint.MethodInvocation constructMethodInvocation(Method method,
                                                                             Object[] args)
Constructs a MethodInvocation from the specified Method and arguments

Parameters:
method -
args -
Returns:

addMetadataToInvocation

protected void addMetadataToInvocation(org.jboss.aop.joinpoint.MethodInvocation methodInvocation)
Adds metadata to the specified MethodInvocation before invocation is called. Extracted to allow subclasses to control which metadata is added to a PojiProxy

Parameters:
methodInvocation -

addArgumentsToInvocation

protected void addArgumentsToInvocation(org.jboss.aop.joinpoint.MethodInvocation invocation,
                                        Object[] originalArguments)
Sets the specified arguments on the specified invocation. Extracted to provide indirection such that the arguments set on the invocation may be different from those originally passed in.

Parameters:
invocation -
originalArguments -

getInterceptors

protected org.jboss.aop.advice.Interceptor[] getInterceptors()

getOid

protected Object getOid()

getUri

protected org.jboss.remoting.InvokerLocator getUri()


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.