public class GroovyUtils extends Object
Constructor and Description |
---|
GroovyUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
buildObject(org.apache.commons.lang3.builder.Builder<T> builder,
Map<String,Object> args)
Build an object using named arguments.
|
static Object |
callWithDelegate(groovy.lang.Closure<?> block,
Object delegate)
Call a configuration block with a specified delegate.
|
public static Object callWithDelegate(groovy.lang.Closure<?> block, Object delegate)
block
- The block to invoke.delegate
- The delegate.public static <T> T buildObject(org.apache.commons.lang3.builder.Builder<T> builder, Map<String,Object> args)
T
- The type of object to be built.builder
- The builder to use.args
- The arguments.