Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
BootStrap definition to automatically register custom marshaller
class BootStrap {
def grailsApplication
grailsApplication.getArtefacts("Domain").each{dc->
//here we register custom marshallers declared in domain classes
if(dc.hasProperty("marshaller")){
dc.clazz.marshaller()
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.