Package org.jeasy.props.processors
Class PropertiesAnnotationProcessor
- java.lang.Object
-
- org.jeasy.props.processors.AbstractAnnotationProcessor<Properties>
-
- org.jeasy.props.processors.PropertiesAnnotationProcessor
-
- All Implemented Interfaces:
AnnotationProcessor<Properties>
public class PropertiesAnnotationProcessor extends AbstractAnnotationProcessor<Properties>
An annotation processor that loads all properties from a properties file.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Constructor Summary
Constructors Constructor Description PropertiesAnnotationProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectprocessAnnotation(Properties propertiesAnnotation, 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(Properties propertiesAnnotation, Field field) throws AnnotationProcessingException
Description copied from interface:AnnotationProcessorProcess an annotation of type T.- Parameters:
propertiesAnnotation- 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
-
-