-
May 16th, 2007, 02:26 AM
#1
Getting the type of a nested bean property
I would like to get the type of a simple nested bean property. For example if the following beans are defined:
class A {
private B b;
... getters and setters ...
}
class B {
private String name;
... getters and setters ...
}
trying BeanUtils.findPropertyType("b.name", new Class[]{A.class}) returns null, also BeanUtils.getPropertyDescriptor(A.class, "b.name"), returns a default value, while I would expect it to return the type String
.
Is such thing is supported in the org.springframework.beans... package?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules