-
Notifications
You must be signed in to change notification settings - Fork 1
Service Definition DSL
Eric Henson edited this page Oct 23, 2013
·
20 revisions
Example Definition
using "grailsApplication" alias "grails"
parameter name:"firstParameter", required: true, default: "default value", type: "string"
action {
handler "script"
file "actionScript.groovy"
properties {
key = "value"
anotherKey = "another value"
keyFromConfig = grails.config.key.in.config
}
}
action handler:"script", file:"secondExample.groovy", {
foo = [[a:"b"], 2, 3, "secondExample"]
}
action file:"thirdExample.groovy", {
foo = [[a:"b"], 2, 3, "thirdExample"]
}
action (handler:"script", file:"fourthExample.groovy") {
foo = [[a:"b"], 2, 3, "fourthExample"]
}
action (file:"sixthExample.groovy") {
foo = [[a:"b"], 2, 3, "sixthExample"]
}