A first hurdle.
How to get past this usage in PropertyDispatchWrapper (kernel module):
| PropertyInfo propertyInfo = BeanInfoUtil.getPropertyInfo(beanInfo, target,
name);
| ValueMetaData valueMetaData = property.getValue();
| Object value = valueMetaData.getValue(propertyInfo.getType(), cl);
| beanInfo.setProperty(target, name, value);
|
Since I need the expected type of the value in order to convert it to the right type, e.g.
string --> Date.
But what if my bean is in FIELD or ALL mode, and there is no such property?
Anything that comes to my mind in api extension to get the type by name from BeanInfo
feels wrong. :-)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136640#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...