[jboss-dev-forums] [Design the new POJO MicroContainer] - JBMICROCONT-132 todo?

alesj do-not-reply at jboss.com
Wed Dec 20 08:10:51 EST 2006


anonymous wrote : 
  | When the ValueConvertor can't find a property editor it falls back to looking for
  | a constructor with a single String parameter.
  | 
  | This is probably not correct in some cases.
  | 
  | It should be looking for a static toValue(String) before looking for the constructor.

What's there to do?
This is already in the ValueConvertor class.


  | improve <init>(String) might not be relevent?
  | 

Should we relax the String.class constraint for the value class, and just use whatever value's class type is.
Or using the same String.class contraint with constructor on the value.toString()

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995285#3995285

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



More information about the jboss-dev-forums mailing list