A - the type of annotations processed@FunctionalInterface public interface LeafAnnotationProcessor<A extends Annotation> extends ConfigAnnotationProcessor<A,Field,ConfigLeafBuilder<?,?>>
Annotations made to be handled by these processors should
specifically target ElementType.FIELD.
AnnotatedSettings.Builder#registerSettingProcessor(Class, LeafAnnotationProcessor)| Modifier and Type | Method and Description |
|---|---|
void |
apply(A annotation,
Field field,
Object pojo,
ConfigLeafBuilder<?,?> builder)
Called for every field that has an annotation of type
A
and is not annotated with @Setting.Group or Setting.ignore(). |
void apply(A annotation, Field field, Object pojo, ConfigLeafBuilder<?,?> builder)
A
and is not annotated with @Setting.Group or Setting.ignore().apply in interface ConfigAnnotationProcessor<A extends Annotation,Field,ConfigLeafBuilder<?,?>>annotation - the annotation present on the fieldfield - a field declared in pojo's classpojo - the plain old java object being processedbuilder - the builder being configuredAnnotatedSettings.applyToNode(ConfigTree, Object)