I'm trying to learn Dynamic Proxies in Java.
I know how they work but I can't find a solution to my problem: given an interface and its implementation with methods a(), b() and c() nested one into the other (let's say a() calls b() which calls c()), I would like to proxy my object to log EACH call to the methods.
So I code my InvocationHandler such as the invoke() method prints a log-line before the execution.
But when I call proxy.a(), only the call of method a() is logged and not the whole chain of methods.
What am I missing? Is the target of the proxy have to be a proxy itself?