Grails 3.x Event Trait

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Grails 3.x Event Trait

I've been investigating using the Grails event model for a development project. I'm trying to chain multiple events together and found the guide on pretty useful. They use the sendAndReceive() call to fire the event which is available from the Event trait but the handler is registered using simply the receive() which is not. Since only Consumer's can be registered with on() I need to directly access the eventBus.receive() method. While this is an acceptable work around I'm curious why receive() and send() were omitted from the Event trait?

Another question I have is it possible (or acceptable) to issue notify() requests from a Consumer defined as a class? 


You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit
For more options, visit