Grails

Defining a bean by calling function on another bean

In Grails, We can define custom beans in resources.groovy. A simple bean definition looks like [java] myClass(MyClass) [/java] Read more about them here. Recently, I wanted to define a bean, where the bean's constructor required me to call a method on another bean to be instantiated. To make it more clear, Let us consider a...

by Sachin
Tag: constructor
10-Dec-2014