How can I get the invocation handler for a Java proxy?

Posted by ripper234 on Stack Overflow See other posts from Stack Overflow or by ripper234
Published on 2010-04-06T10:09:38Z Indexed on 2010/04/06 10:13 UTC
Read the original article Hit count: 145

Filed under:
|
|

Given:

Object innerProxy = ...
Object proxy = java.lang.reflect.Proxy.
                newProxyInstance(Thread.currentThread().getContextClassLoader(),
                                 new Class[]{type},
                                 innerProxy);

How can I extract the innerProxy object from proxy?

© Stack Overflow or respective owner

Related posts about java

Related posts about proxy