Used mainly by BeanPathTools A delegating bean delegates all its properties/method calls to the target bean unless the property/method is explicitly specified in delegating bean itself. Delegating beans are specifically used to create the domains view for list screen where the screens needs domain columns which are not part of the domain. Delegating bean helps keeping the domain clean by not stuffing every property/method in the domain class itself Just to generate the list screen Example: customer list screen needs customer.calcs - calcs can be customer cals or branch calcs based on branch login DelegatingBean can be used to keep customer clean of this stuff by defining getCals() in delegating bean or customer repository.
Constructor and description |
---|
DelegatingBean
(Object target) |
Type Params | Return Type | Name and description |
---|---|---|
|
Object |
methodMissing(String name, Object args) |
|
Object |
propertyMissing(String name) |
Groovy Documentation