Skip to Content »

Tech Life of Recht » GWT Xdoclet with typeArgs

 GWT Xdoclet with typeArgs

  • December 4th, 2007
  • 11:14 pm

I've updated the GWT Xdoclet module to support typeArgs for collections. This is used when returning a collection from a service method:

CODE:
  1. /**
  2. * @gwt.serviceMethod
  3. * @gwt.typeArgs dk.contix.Test
  4. */
  5. public List getObjects() {
  6.   return new ArrayList();
  7. }

Notice that the object type is not written in <> as you would do if using GWT directly.

The new module can be downloaded here: xdoclet-gwt-module-0.5.jar.

Want your say?

* Required fields. Your e-mail address will not be published on this site

You can use the following XHTML tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>