|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.thoughtworks.proxy.toys.dispatch.DispatchingInvoker
public class DispatchingInvoker
Invoker that dispatches all invocations to different objects according the membership of the method.
Constructor Summary | |
---|---|
protected |
DispatchingInvoker()
Constructor used by pure reflection serialization. |
|
DispatchingInvoker(ProxyFactory proxyFactory,
Class<?>[] types,
ObjectReference<Object>[] delegateReferences)
Construct a DispatchingInvoker. |
Method Summary | |
---|---|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Invocation of a method of the proxied object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DispatchingInvoker(ProxyFactory proxyFactory, Class<?>[] types, ObjectReference<Object>[] delegateReferences)
proxyFactory
- the ProxyFactory
to usetypes
- the types of the generated proxydelegateReferences
- the ObjectReferences
for the delegatesprotected DispatchingInvoker()
Method Detail |
---|
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
Invoker
invoke
in interface Invoker
proxy
- the proxy instance.method
- the method to invoke.args
- the arguments of the method.
Throwable
- if the invoked method has thrown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |