Hi,

before touching the design document I would like to share some thoughts on our type conversion support.

I summary I would like add the following rules to the design document:

1. If the target data type is java.lang.String no conversion is needed.
2. If the target data type is not java.lang.String and if the target data type provides a static T valueOf(String) method than this method will be used as factory method for the target value. 3. If the target data type is not java.lang.String and if the target data type provides a ctor with a single String parameter this ctor will be used to create a instance of the target data type. 4. In case there is a registered PropertyAdapter implementation for the required target datatype this implementation will have precedence.

wdyt?

Oliver

--
N Oliver B. Fischer
A Schönhauser Allee 64, 10437 Berlin, Deutschland/Germany
P +49 30 44793251
M +49 178 7903538
E o.b.fisc...@swe-blog.net
S oliver.b.fischer
J oliver.b.fisc...@jabber.org
X http://xing.to/obf

Reply via email to