Skip to content

Instantly share code, notes, and snippets.

@pledbrook
Created July 19, 2012 12:20
Show Gist options
  • Save pledbrook/3143470 to your computer and use it in GitHub Desktop.
Save pledbrook/3143470 to your computer and use it in GitHub Desktop.
package todosample
import grails.events.Listener
class DebugService {
@Listener
def packageWarStart() {
println "[DebugService] Packaging started"
}
@Listener
def packageWarStatus(String msg) {
println "[DebugService] Packaging status: ${msg}"
}
}
import todosample.Todo
events = {
'afterInsert' browser:true, filter:Todo
'afterDelete' browser:true, filter:Todo
'afterUpdate' browser:true, filter:Todo
deployStart browser: true
deployEnd browser: true
packageWarStart browser: true
packageWarStatus browser: true
packageWarEnd browser: true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment