<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Hello,</span></div><div><br><span></span></div><div><span>Just looked at </span><font face="Arial" size="2">2011-06-29 </font><span>meeting.</span></div><div><span><br></span></div><div><span>If it can help, Spring has a conversion API.</span></div><div><span>Here are some links :<br></span></div><div><span> * http://static.springsource.org/spring/docs/3.1.0.M2/spring-framework-reference/html/validation.html#core-convert</span></div><div><span> * http://static.springsource.org/spring/docs/3.1.0.M2/javadoc-api/org/springframework/core/convert/package-frame.html</span></div><div><span> * http://www.developer.com/java/web/article.php/10935_3861826_2/The-New-Spring-30-Features-You-Need-to-Know.htm<br></span></div><div><br></div><div>Here's a usage sample (taken from spring doc) :</div><pre
class="programlisting">@Service
<span class="hl-keyword">public</span> <span class="hl-keyword">class</span> MyService {
@Autowired
<span class="hl-keyword">public</span> MyService(ConversionService conversionService) {
<span class="hl-keyword">this</span>.conversionService = conversionService;
}
<span class="hl-keyword">public</span> <span class="hl-keyword">void</span> doIt() {
<span class="hl-keyword">this</span>.conversionService.convert(...)
}
}<br><br></pre><div><br><span></span></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;">Adriàn<br></div></div></body></html>