org.apache.commons.proxy
Interface Invoker

All Known Implementing Classes:
DuckTypingInvoker, InvocationHandlerAdapter, NullInvoker, XmlRpcInvoker

public interface Invoker

An invoker is responsible for handling a method invocation.

Since:
1.0
Author:
James Carman

Method Summary
 Object invoke(Object proxy, Method method, Object[] arguments)
          "Invokes" the method.
 

Method Detail

invoke

Object invoke(Object proxy,
              Method method,
              Object[] arguments)
              throws Throwable
"Invokes" the method. Implementation should throw a InvokerException if problems arise while trying to invoke the method.

Parameters:
proxy - the proxy object
method - the method being invoked
arguments - the arguments
Returns:
the return value
Throws:
Throwable - thrown by the implementation


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