Grails Controller methods to accept Java Objects as arguements

31 views
Skip to first unread message

Vinod Jayachandran

unread,
Sep 16, 2015, 2:45:23 AM9/16/15
to Grails Dev Discuss
Can Grails Controller methods accept Java objects as arguements.

I am aware of the JAX-RS pluggin which allows accepting only domain classes, while i would like to have any Java object as parameter to my controller service.

Is it possible ?

Jeff Scott Brown

unread,
Sep 21, 2015, 1:42:43 PM9/21/15
to grails-de...@googlegroups.com

> On Sep 16, 2015, at 1:45 AM, Vinod Jayachandran <vinodjay...@gmail.com> wrote:
>
> Can Grails Controller methods accept Java objects as arguements.


Yes. They won’t be validateable but data binding and DI will still happen to them.



JSB

Jeff Scott Brown
Principal Software Engineer
Grails Development Team
Object Computing Inc.
http://www.ociweb.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/

Reply all
Reply to author
Forward
0 new messages