I have a simple beans with interceptors bound to them.
My code is :
Person person1 = (Person) beanFactory.getBean("person1");
Person person2 = (Person) beanFactory.getBean("person2");
System.out.println("person1: " + person1.getClass().getName());
System.out.println("person2: " + person2.getClass().getName());
It prints out:
person1: $Proxy0
person2: PersonImpl$$EnhancerByCGLIB$$dbf2c774
which is what I expected since my application context has been configured as such.
However, how do I get the "actual" class name (eg. PersonImpl?) from the proxied object?
Dino


Reply With Quote