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
- Author:
- Graeme Rocher
Methods inherited from class groovy.lang.GroovyObjectSupport |
getMetaClass, getProperty, setMetaClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClosureToMapPopulator
public ClosureToMapPopulator(Map theMap)
ClosureToMapPopulator
public ClosureToMapPopulator()
populate
public Map populate(groovy.lang.Closure callable)
setProperty
public void setProperty(String name,
Object o)
- Specified by:
setProperty
in interface groovy.lang.GroovyObject
- Overrides:
setProperty
in class groovy.lang.GroovyObjectSupport
invokeMethod
public Object invokeMethod(String name,
Object o)
- Specified by:
invokeMethod
in interface groovy.lang.GroovyObject
- Overrides:
invokeMethod
in class groovy.lang.GroovyObjectSupport
Copyright (c) 2005-2009 The Grails project