Created
January 28, 2014 18:45
-
-
Save atomsfat/8673594 to your computer and use it in GitHub Desktop.
BootStrap definition to automatically register custom marshaller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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