How to unwrap the original object from a dynamic proxy

后端 未结 3 623
借酒劲吻你
借酒劲吻你 2021-01-11 15:53

what\'s the best approach to unwrap a dynamic proxy to retrieve the original object beneath? The dynamic proxy has been created using java.lang.reflect.Proxy.newProxyI

3条回答
  •  余生分开走
    2021-01-11 16:54

    You can use the Proxy.getInvocationHandler(proxy) method to obtain the original InvocationHandler.

提交回复
热议问题