A - the type of annotations processed@FunctionalInterface public interface BranchAnnotationProcessor<A extends Annotation> extends ConfigAnnotationProcessor<A,Field,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.Builder#registerGroupProcessor(Class, BranchAnnotationProcessor)| Modifier and Type | Method and Description |
|---|---|
void |
apply(A annotation,
Field field,
Object pojo,
ConfigTreeBuilder builder)
Called for every field that has an annotation of type
A and is annotated with @Group. |
void apply(A annotation, Field field, Object pojo, ConfigTreeBuilder builder)
A and is annotated with @Group.apply in interface ConfigAnnotationProcessor<A extends Annotation,Field,ConfigTreeBuilder>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)