|
From: Hunter K. <re...@ei...> - 2004-12-14 16:45:32
|
Hi there, I'm mucking about with some advanced reflection stuff in Spring. I need to examine the Fields of an object, unfortunately sometimes the object I have is an AOP proxy, for certain methods. I know that AopUtils.isAopProxy will tell me this, which is fine, but I haven't been able to figure out a way of getting the actual target object - I noticed that there is a certain amount of stuff for detecting if the object is returning itself, and returning the proxy, etc. Is there some way of getting at the target object, given the proxy? Thanks, Hunter |