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