Package org.jeasy.props.processors
Class MavenPropertyAnnotationProcessor
- java.lang.Object
-
- org.jeasy.props.processors.AbstractAnnotationProcessor<MavenProperty>
-
- org.jeasy.props.processors.MavenPropertyAnnotationProcessor
-
- All Implemented Interfaces:
AnnotationProcessor<MavenProperty>
public class MavenPropertyAnnotationProcessor extends AbstractAnnotationProcessor<MavenProperty>
An annotation processor that loads all properties fromMETA-INF/maven/groupId/artifactId/pom.properties.- Author:
- lhottois (natlantisprog@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description MavenPropertyAnnotationProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectprocessAnnotation(MavenProperty mavenAnnotation, 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(MavenProperty mavenAnnotation, Field field) throws AnnotationProcessingException
Description copied from interface:AnnotationProcessorProcess an annotation of type T.- Parameters:
mavenAnnotation- 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
-
-