Package grails.util
Class ClosureToMapPopulator
java.lang.Object
groovy.lang.GroovyObjectSupport
grails.util.ClosureToMapPopulator
- All Implemented Interfaces:
groovy.lang.GroovyObject
public class ClosureToMapPopulator
extends groovy.lang.GroovyObjectSupport
A simple class that takes method invocations and property setters and populates
the arguments of these into the supplied map ignoring null values.
- Since:
- 1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvokeMethod(String name, Object o) populate(groovy.lang.Closure callable) voidsetProperty(String name, Object o) Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObject
getProperty
-
Constructor Details
-
ClosureToMapPopulator
-
ClosureToMapPopulator
public ClosureToMapPopulator()
-
-
Method Details
-
populate
-
setProperty
-
invokeMethod
-