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.
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