public interface FieldAnnotationProcessor
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.
|
@Nonnull Class<? extends Annotation> getTrigger()
void handle(@Nonnull MutableGlobalContext ctx, @Nullable Object object, @Nonnull Field field) throws Exception
ctx
- 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.