40. GrailsプラグインでdoWithSpring
再利用しちゃいましょう!
class JggugBeanGrailsPlugin {
// the plugin version
def version = "0.1"
....
def doWithSpring = {
// TODO Implement runtime spring config (optional)
exampleBean3(bean.ExamplePluginBean,"hello plugin exampleBean3"){
name = "My 3rd Bean"
num = 100
}
}
....
}
プラグインの細かい話はJGGUGの勉強会「G*」で!