java - How to know original class name if wrapped into proxy by Spring? -
i trying obtain classes name getclass().getsimplename() under spring , returns
myclass$$enhancerbyspringcglib$$somehex this because spring wraps class proxy.
is there portable way obtain original class name?
spring provides utility this.
public static class<?> getuserclass(class<?> clazz) "return user-defined class given class: given class, original class in case of cglib-generated subclass."
Comments
Post a Comment