A helper class for settings manipulation.
| Type | Name and description |
|---|---|
static java.util.Map<java.lang.String, java.lang.Object> |
computePropertiesToString(java.lang.Object target)Compute properties for string representation. |
static java.util.Map<java.lang.String, T> |
findAssignableKeys(java.lang.Object object, groovy.lang.Closure<T> transform)Find and map assignable properties of the object. |
static java.util.Map<java.lang.String, java.lang.reflect.Method> |
findMethods(java.lang.Object object, java.lang.String prefix)Find methods with the prefix. |
static void |
mergeProperties(java.lang.Object target, java.lang.Object... sources)Compute and set merged properties. |
| Methods inherited from class | Name |
|---|---|
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() |
Compute properties for string representation.
Class should implements method toString__propertyName
to exclude or customize property representation.
See test for details of specification.
Find and map assignable properties of the object.
Find methods with the prefix.
Compute and set merged properties.
Class should implements method plus__propertyName
to customize merge logic of the property.
See test for details of specification.
sources - a list of settings in descending order (last one has the highest priority)