Package org.jeasy.props.processors
Class ManifestPropertyAnnotationProcessor
- java.lang.Object
-
- org.jeasy.props.processors.AbstractAnnotationProcessor<ManifestProperty>
-
- org.jeasy.props.processors.ManifestPropertyAnnotationProcessor
-
- All Implemented Interfaces:
AnnotationProcessor<ManifestProperty>
public class ManifestPropertyAnnotationProcessor extends AbstractAnnotationProcessor<ManifestProperty>
An annotation processor that loads a header value fromMETA-INF/MANIFEST.MFfile.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Constructor Summary
Constructors Constructor Description ManifestPropertyAnnotationProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectprocessAnnotation(ManifestProperty manifestPropertyAnnotation, Field field)Process an annotation of type T.-
Methods inherited from class org.jeasy.props.processors.AbstractAnnotationProcessor
missingAttributeValue, rejectIfEmpty
-
-
-
-
Method Detail
-
processAnnotation
public Object processAnnotation(ManifestProperty manifestPropertyAnnotation, Field field) throws AnnotationProcessingException
Description copied from interface:AnnotationProcessorProcess an annotation of type T.- Parameters:
manifestPropertyAnnotation- 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
-
-