On Aug 19, 3:45 am, billdavi...@gmail.com wrote:
> I come to the proxy class when I am debugging my application, but I
> can't get into it. Is is possible for me to get the class file of
[quoted text clipped - 3 lines]
> In my memory, we can write any class in classpath into a file. But I
> forget how to do it.
Proxy classes are generated at runtime, and there really isn't much to
know about them. They intercept all calls, and pass it to the
InvocationHandler to handle. If your proxy class ultimately delegates
to another class, then set a breakpoint inside that other class. If
you are trying to debug what happens after the call, before the
delegation, then set a breakpoint inside the InvocationHandler.
Twisted - 20 Aug 2007 04:05 GMT
> On Aug 19, 3:45 am, billdavi...@gmail.com wrote:
>
[quoted text clipped - 12 lines]
> you are trying to debug what happens after the call, before the
> delegation, then set a breakpoint inside the InvocationHandler.
If you can get ahold of an instance programmatically, you can use
getClass(), and then seriously reflective stuff (probably starting
with getting the ClassLoader), and wind up being able to access the
class binary representation as a byte array. Dump this to a file and
use javap.