org.apache.commons.proxy
Interface Invocation

All Known Implementing Classes:
JavassistInvocation

public interface Invocation

Represents a method invocation.

Since:
1.0
Author:
James Carman

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.
 Object proceed()
          Called in order to let the invocation proceed.
 

Method Detail

getMethod

Method getMethod()
Returns the method being called.

Returns:
the method being called

getArguments

Object[] getArguments()
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.

Returns:
the arguments being passed to this method invocation

getProxy

Object getProxy()
Returns the proxy object on which this invocation was invoked.

Returns:
the proxy object on which this invocation was invoked

proceed

Object proceed()
               throws Throwable
Called in order to let the invocation proceed.

Returns:
the return value of the invocation
Throws:
Throwable - any exception or error that was thrown as a result of this invocation


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.