org.apache.commons.proxy.factory.javassist
Class JavassistInvocation

java.lang.Object
  extended by org.apache.commons.proxy.factory.javassist.JavassistInvocation
All Implemented Interfaces:
Invocation

public abstract class JavassistInvocation
extends Object
implements Invocation

A Javassist-based Invocation implementation. This class actually serves as the superclass for all Javassist-based method invocations. Subclasses are dynamically created to deal with specific interface methods (they're hard-wired).

Since:
1.0
Author:
James Carman

Field Summary
protected  Object[] arguments
           
protected  Method method
           
protected  Object target
           
 
Constructor Summary
JavassistInvocation(Method method, Object target, Object[] arguments)
           
 
Method Summary
 Object[] getArguments()
          Returns the arguments being passed to this method invocation.
 Method getMethod()
          Returns the method being called.
 Object getProxy()
          Returns the proxy object on which this invocation was invoked.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.proxy.Invocation
proceed
 

Field Detail

method

protected final Method method

target

protected final Object target

arguments

protected final Object[] arguments
Constructor Detail

JavassistInvocation

public JavassistInvocation(Method method,
                           Object target,
                           Object[] arguments)
Method Detail

getArguments

public Object[] getArguments()
Description copied from interface: Invocation
Returns the arguments being passed to this method invocation. Changes in the elements of this array will be propagated to the recipient of this invocation.

Specified by:
getArguments in interface Invocation
Returns:
the arguments being passed to this method invocation

getMethod

public Method getMethod()
Description copied from interface: Invocation
Returns the method being called.

Specified by:
getMethod in interface Invocation
Returns:
the method being called

getProxy

public Object getProxy()
Description copied from interface: Invocation
Returns the proxy object on which this invocation was invoked.

Specified by:
getProxy in interface Invocation
Returns:
the proxy object on which this invocation was invoked


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.