public interface Invoker
extends java.io.Serializable
ProxyFactory
. An implementation realizes an invocation handler for the proxy. So it has the same
purpose as InvocationHandler
.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Invocation of a method of the proxied object.
|
java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
proxy
- the proxy instance.method
- the method to invoke.args
- the arguments of the mothod.java.lang.Throwable
- if the invoked method has thrown.