« Return to Thread: XFire plugin for Grails 0.5 Released

Re: XFire plugin for Grails 0.5 Released

by Jeremy Rayner :: Rate this Message:

Reply to Author | View in Thread

Nope, generic support is only at parser level so far,
but you can use

def getAllBooks() {
}

at least in groovy...
(not sure of xfire itself)

jez


On 5/4/07, Chanwit Kaewkasi <chanwit@...> wrote:

> Hi Jez,
>
> I think just simple one like this
>
> List<Book> getAllBooks() {
> }
>
> Is that already in Groovy 1.1-beta1?
>
> Cheers,
>
> Chanwit
>
>
> On 04/05/07, Jeremy Rayner <jeremy.rayner@...> wrote:
> > What kind of generic support do you need?  Jez.
> >
> > On 5/4/07, Chanwit Kaewkasi <chanwit@...> wrote:
> > > Hi Peter,
> > >
> > > Sorry, you cannot use List, etc., as a return type, at the moment.
> > > We need to wait for generic support from Groovy.
> > >
> > > What we can do now is to use an array.
> > > So you have to declare something like this:
> > >
> > > Book[] getAllBooks() {
> > >  // retrieve books and convert them into an array
> > > }
> > >
> > > Cheers,
> > >
> > > Chanwit
> > >
> > > On 04/05/07, Peter Ledbrook <peter@...> wrote:
> > > > On 04/05/07, Chanwit Kaewkasi <chanwit@...> wrote:
> > > > > Hi all,
> > > > >
> > > > > XFire plugin has been updated to be compatible with Grails 0.5 and now
> > > released.
> > > > > This version comes with XFire 1.2.6.
> > > > >
> > > > > http://docs.codehaus.org/display/GRAILS/XFire+plugin
> > > > >
> > > > > Cheers,
> > > > >
> > > > > Chanwit
> > > >
> > > > Hi Chanwit,
> > > >
> > > > How do you deal with collections in a service method's arguments or
> > > > return type? I tried exposing a service of mine via 'xfire' but XFire
> > > > complained about there being no component type specified for my List
> > > > return type and List arguments.
> > > >
> > > > Thanks,
> > > >
> > > > Peter
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe from this list please visit:
> > > >
> > > >     http://xircles.codehaus.org/manage_email
> > > >
> > > >
> > >
> > >
> > > --
> > > Chanwit Kaewkasi
> > > PhD Student,
> > > Centre for Novel Computing
> > > School of Computer Science
> > > The University of Manchester
> > > Oxford Road
> > > Manchester
> > > M13 9PL, UK
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe from this list please visit:
> > >
> > >     http://xircles.codehaus.org/manage_email
> > >
> > >
> >
> >
> > --
> > Groovy Engineer                                          http://searchgroovy.org
> > http://javanicus.com/blog2
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
>
>
> --
> Chanwit Kaewkasi
> PhD Student,
> Centre for Novel Computing
> School of Computer Science
> The University of Manchester
> Oxford Road
> Manchester
> M13 9PL, UK
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
Groovy Engineer                                          http://searchgroovy.org
http://javanicus.com/blog2

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

 « Return to Thread: XFire plugin for Grails 0.5 Released