Groovy Documentation

kotka.gradle.utils
[Groovy] Class ConfigureUtil

java.lang.Object
  kotka.gradle.utils.ConfigureUtil

class ConfigureUtil

A utility class to help configuring objects.

Authors:
Meikel Brandmeyer


Method Summary
static java.lang.Object configure(java.lang.Object target, groovy.lang.Closure configureFn = {})

Configures the target object.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

configure

static java.lang.Object configure(java.lang.Object target, groovy.lang.Closure configureFn = {})
Configures the target object. It sets it as the delegate of the configureFn closure and calls the latter. Passes the target object also as first argument to the closure should it support it.
Parameters:
target - the object to configure
configureFn - a closure to be executed with target as delegate
Returns:
target


 

Groovy Documentation