Given:
Object innerProxy = ... Object proxy = java.lang.reflect.Proxy. newProxyInstance(Thread.currentThread().getContextClassLoader(), new Class[]{type}, innerProxy);
How can I extract innerProxy object from proxy ?
innerProxy
proxy
You can use Proxy.getInvocationHandler() :
Proxy.getInvocationHandler()
InvocationHandler innerProxy = Proxy.getInvocationHandler(proxy);
Source: https://habr.com/ru/post/1306103/More articles:How to change the design of the return value in OO? - javaAverage value on average in one line - sqlC ++ template type inference problem - c ++Autocomplete Eclipse for Roo project - javaShould OpenID be distinguished based on a protocol prefix or not? http vs https - httpvisual studio 2008 equivalent for javascript - javascriptHow are I / O operations blocked? - javamobile browsers cannot enter my site - authenticationampersand in email (href) - htmlundefined: PyUnicodeUCS2_Decode when trying to install psycopg2 - pythonAll Articles