|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.thoughtworks.proxy.kit.SimpleInvoker
public class SimpleInvoker
A simple Invoker
implementation, that routes any call to a target object. A null
value as
target can be handled, the invocation result will always be null
.
Constructor Summary | |
---|---|
SimpleInvoker(Object target)
Construct a SimpleInvoker. |
Method Summary | |
---|---|
protected Object |
getTarget()
Retrieve the target of the invocations. |
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 SimpleInvoker(Object target)
target
- the invocation target.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.protected Object getTarget()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |