padcom / grails-routing

Apache License 2.0
30 stars 31 forks source link

Provide a service for sendMessage instead of wirering it onto all services? #49

Open andersnorgaard opened 9 years ago

andersnorgaard commented 9 years ago

If the plugin provided eg. a GrailsRoutingService with the "sendMessage" method, then the services or controllers that want to send messages could have that service injected.

To me that would have a more idiomatic Grails feel, and it would be easy to mock/stub such a service.

Thanks Anders