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
?
You can use Proxy.getInvocationHandler()
:
InvocationHandler innerProxy = Proxy.getInvocationHandler(proxy);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With