Package org.jeasy.props.processors
Class EnvironmentVariableAnnotationProcessor
- java.lang.Object
-
- org.jeasy.props.processors.AbstractAnnotationProcessor<EnvironmentVariable>
-
- org.jeasy.props.processors.EnvironmentVariableAnnotationProcessor
-
- All Implemented Interfaces:
AnnotationProcessor<EnvironmentVariable>
public class EnvironmentVariableAnnotationProcessor extends AbstractAnnotationProcessor<EnvironmentVariable>
An annotation processor that loads properties from environment variables.- Author:
- Greg Schofield (gregs@indellient.com), Mahmoud Ben Hassine
-
-
Constructor Summary
Constructors Constructor Description EnvironmentVariableAnnotationProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectprocessAnnotation(EnvironmentVariable environmentVariable, 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(EnvironmentVariable environmentVariable, Field field) throws AnnotationProcessingException
Description copied from interface:AnnotationProcessorProcess an annotation of type T.- Parameters:
environmentVariable- 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
-
-