|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.thoughtworks.proxy.toys.decorate.DecoratingInvoker<T>
public class DecoratingInvoker<T>
Invoker implementation for the decorating proxy. The implementation may decorate an object or another Invoker
.
Constructor Summary | |
---|---|
DecoratingInvoker(Invoker decorated,
Decorator<T> decorator)
Construct a DecoratingInvoker decorating another Invoker. |
|
DecoratingInvoker(Object delegate,
Decorator<T> decorator)
Construct a DecoratingInvoker decorating another object. |
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 DecoratingInvoker(Invoker decorated, Decorator<T> decorator)
decorated
- the decorated Invoker
.decorator
- the decorating instance.public DecoratingInvoker(Object delegate, Decorator<T> decorator)
delegate
- the decorated object.decorator
- the decorating instance.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 |