[seam-dev] Conversion API

George Gastaldi gegastaldi at gmail.com
Thu Jun 30 10:18:51 EDT 2011


Nice, I found that on Spring docs also. Thanks for the code.

Em 30/06/2011, às 10:14, Adrian Gonzalez <adr_gonzalez at yahoo.fr> escreveu:

Hello,

Just looked at 2011-06-29 meeting.

If it can help, Spring has a conversion API.
Here are some links :
 *
http://static.springsource.org/spring/docs/3.1.0.M2/spring-framework-reference/html/validation.html#core-convert
 *
http://static.springsource.org/spring/docs/3.1.0.M2/javadoc-api/org/springframework/core/convert/package-frame.html
 *
http://www.developer.com/java/web/article.php/10935_3861826_2/The-New-Spring-30-Features-You-Need-to-Know.htm

Here's a usage sample (taken from spring doc) :

@Servicepublic class MyService {

    @Autowired
    public MyService(ConversionService conversionService) {
        this.conversionService = conversionService;
    }

    public void doIt() {
        this.conversionService.convert(...)
    }
}


Adriàn

_______________________________________________
seam-dev mailing list
seam-dev at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/seam-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/seam-dev/attachments/20110630/06405eba/attachment.html 


More information about the seam-dev mailing list