griffon.util
[Java] Class ClosureToMapPopulator
java.lang.Object
groovy.lang.GroovyObjectSupport
griffon.util.ClosureToMapPopulator
@SuppressWarnings("unchecked")
public class ClosureToMapPopulator
extends GroovyObjectSupport
A simple class that takes method invocations and property setters and populates
the arguments of these into the supplied map ignoring null values.
- Authors:
- Graeme Rocher (Grails 1.2)
- Since:
- 0.9.1
Methods inherited from class GroovyObjectSupport
|
setProperty, getProperty, getMetaClass, setMetaClass, invokeMethod, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
map
private Map map
-
ClosureToMapPopulator
public ClosureToMapPopulator(Map theMap)
-
ClosureToMapPopulator
public ClosureToMapPopulator()
-
invokeMethod
@Override
public Object invokeMethod(String name, Object o)
-
populate
public Map populate(Closure callable)
-
setProperty
@Override
public void setProperty(String name, Object o)
-
Groovy Documentation