com.thoughtworks.proxy
Interface Invoker

All Superinterfaces:
Serializable
All Known Implementing Classes:
DecoratingInvoker, DelegatingInvoker, DispatchingInvoker, FailoverInvoker, FutureInvoker, HotSwappingInvoker, MulticastingInvoker, NullInvoker, Pool.PoolingInvoker, PrivateInvoker, PrivilegingInvoker, SimpleInvoker

public interface Invoker
extends Serializable

Generic interface for any call made to a proxy instance. This is the main interface for any proxy implementation using a ProxyFactory. An implementation realizes an invocation handler for the proxy. So it has the same purpose as InvocationHandler.

Since:
0.1

Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
          Invocation of a method of the proxied object.
 

Method Detail

invoke

Object invoke(Object proxy,
              Method method,
              Object[] args)
              throws Throwable
Invocation of a method of the proxied object.

Parameters:
proxy - the proxy instance.
method - the method to invoke.
args - the arguments of the method.
Returns:
the result of the invoked method.
Throws:
Throwable - if the invoked method has thrown.
Since:
0.1


Copyright © 2005-2010 Codehaus. All Rights Reserved.