A - the type of annotations processed@FunctionalInterface public static interface SettingAnnotationProcessor.Group<A extends java.lang.annotation.Annotation> extends SettingAnnotationProcessor<A,ConfigTreeBuilder>
In effect, this is called for every field in a config POJO
class that is annotated with Setting.Group.
Annotations made for these processors should
specifically target ElementType.FIELD.
AnnotatedSettings#registerGroupProcessor(Class, Group)SettingAnnotationProcessor.Group<A extends java.lang.annotation.Annotation>, SettingAnnotationProcessor.Value<A extends java.lang.annotation.Annotation>| Modifier and Type | Method and Description |
|---|---|
void |
apply(A annotation,
java.lang.reflect.Field field,
java.lang.Object pojo,
ConfigTreeBuilder node)
Called for every field that has an annotation of type
A. |
void apply(A annotation, java.lang.reflect.Field field, java.lang.Object pojo, ConfigTreeBuilder node)
SettingAnnotationProcessorA.apply in interface SettingAnnotationProcessor<A extends java.lang.annotation.Annotation,ConfigTreeBuilder>annotation - the annotation present on the fieldfield - a field declared in pojo's classpojo - the plain old java object being processednode - the builder being configuredAnnotatedSettings.applyToNode(ConfigTreeBuilder, Object)