On Tuesday 02 February 2010, Miss Marie Ruana wrote:
> Hi all,
> 
> I would like to know if it's possible to generate code with an
> annotation in client side before the GWT compilation ?
> 
> For example, if i have a POJO like this :
> 
> @MyAnnotation
> public class MyPojo {
>       private String dummyAttribute;
> }
> 
> I would like that "MyAnnotation" Annotation generate code before the
> GWT compilation process.
> Is this possible and which mechanism i need to use to do that ?
> 
> Thanks
> 
Have you looked at Lombok?   If not visit http://projectlombok.org .

This project does exactly what you are looking for (although writing the 
code is not trivial) and there is a method (called delombok) which takes
your source code and generates the raw Java code that would do the 
same thing so that you can run it through the GWT compilation process.

David

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to