Package org.jeasy.props.api
Interface AnnotationProcessor<T extends Annotation>
-
- Type Parameters:
T- The annotation type.
- All Known Implementing Classes:
AbstractAnnotationProcessor,DBPropertyAnnotationProcessor,EnvironmentVariableAnnotationProcessor,I18NPropertyAnnotationProcessor,JNDIPropertyAnnotationProcessor,ManifestPropertyAnnotationProcessor,MavenPropertyAnnotationProcessor,PropertiesAnnotationProcessor,PropertyAnnotationProcessor,SystemPropertyAnnotationProcessor
public interface AnnotationProcessor<T extends Annotation>Annotation processor interface. Implementations should provide the logic to get the value to inject in the target field annotated with T. Easy Props will convert the value to the target field's type and set it in the field.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectprocessAnnotation(T annotation, Field field)Process an annotation of type T.
-
-
-
Method Detail
-
processAnnotation
Object processAnnotation(T annotation, Field field) throws AnnotationProcessingException
Process an annotation of type T.- Parameters:
annotation- the annotation to process.field- the target field- Returns:
- Return the object to set in the annotated field or
nullif the value should be ignored - Throws:
AnnotationProcessingException- thrown if an exception occurs during annotation processing
-
-