public class ConventionAwareHelper extends Object implements ConventionMapping, HasConvention
ConventionMapping.MappedProperty| Constructor and Description |
|---|
ConventionAwareHelper(IConventionAware source) |
ConventionAwareHelper(IConventionAware source,
Convention convention) |
| Modifier and Type | Method and Description |
|---|---|
Convention |
getConvention() |
<T> T |
getConventionValue(T actualValue,
String propertyName,
boolean isExplicitValue) |
IConventionAware |
getSource() |
ConventionMapping.MappedProperty |
map(String propertyName,
Callable<?> value) |
ConventionMapping.MappedProperty |
map(String propertyName,
Closure<?> value) |
void |
propertyMissing(String name,
Object value) |
void |
setSource(IConventionAware source) |
public ConventionAwareHelper(IConventionAware source)
AsmBackedClassGenerator.ClassBuilderImpl.mixInConventionAware()public ConventionAwareHelper(IConventionAware source, Convention convention)
public ConventionMapping.MappedProperty map(String propertyName, Closure<?> value)
map in interface ConventionMappingpublic ConventionMapping.MappedProperty map(String propertyName, Callable<?> value)
map in interface ConventionMappingpublic <T> T getConventionValue(T actualValue,
String propertyName,
boolean isExplicitValue)
getConventionValue in interface ConventionMappingpublic Convention getConvention()
getConvention in interface HasConventionpublic IConventionAware getSource()
public void setSource(IConventionAware source)
Copyright © 2013. All rights reserved