[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Field injection

alesj do-not-reply at jboss.com
Fri Mar 14 08:31:03 EDT 2008


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#4136640

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136640



More information about the jboss-dev-forums mailing list