public class ConfigValueAnnotationProcessor extends Object implements FieldAnnotationProcessor
ConfigValue annotation.FieldAnnotationProcessor,
ConfigValue| Constructor and Description |
|---|
ConfigValueAnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Annotation> |
getTrigger()
Returns the trigger-annotation which is used to identify fields of
interest.
|
void |
handle(MutableGlobalContext ctx,
Object object,
Field field)
Invoked for each field which contains the trigger-annotation.
|
public Class<? extends Annotation> getTrigger()
FieldAnnotationProcessorgetTrigger in interface FieldAnnotationProcessorpublic void handle(MutableGlobalContext ctx, Object object, Field field) throws Exception
FieldAnnotationProcessorhandle in interface FieldAnnotationProcessorctx - the context which can be used to fetch parts fromobject - the object which should be filled. Can be null when processing static fields.field - the field to be processedException - if a part cannot be resolved or the field cannot be filledCopyright © 2018. All rights reserved.