Perfect. I already discussed that with @dblevins . This makes complete
sense - add it!

2014-11-29 0:38 GMT+01:00 Oliver B. Fischer <o.b.fisc...@swe-blog.net>:

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


-- 
*Anatole Tresch*
Java Engineer & Architect, JSR Spec Lead
Glärnischweg 10
CH - 8620 Wetzikon

*Switzerland, Europe Zurich, GMT+1*
*Twitter:  @atsticks*
*Blogs: **http://javaremarkables.blogspot.ch/
<http://javaremarkables.blogspot.ch/>*

*Google: atsticksMobile  +41-76 344 62 79*

Reply via email to