rip*_*234 4 java reflection proxy
鉴于:
Object innerProxy = ...
Object proxy = java.lang.reflect.Proxy.
newProxyInstance(Thread.currentThread().getContextClassLoader(),
new Class[]{type},
innerProxy);
Run Code Online (Sandbox Code Playgroud)
如何从中提取innerProxy对象proxy?
axt*_*avt 15
你可以使用Proxy.getInvocationHandler():
InvocationHandler innerProxy = Proxy.getInvocationHandler(proxy);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2351 次 |
| 最近记录: |