public class AnnotationHandlerUtils extends Object
| Constructor and Description |
|---|
AnnotationHandlerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isDefault(Annotation propertyDescriptorAnno,
Method annotationMethod)
This method will check if an annotation property has a default value by
see if there is a field named DEFAULT_ + property name.
|
static void |
setPropertiesFromAnnotation(Annotation annotation,
Object target)
For each attribute of annotation, will search for a matching property on
the target and set it with the value of the attribute unless the attribute
is set to the "default" value
|
public static boolean isDefault(Annotation propertyDescriptorAnno, Method annotationMethod)
propertyDescriptorAnno - annotationMethod - public static void setPropertiesFromAnnotation(Annotation annotation, Object target)
annotation - descriptor - Copyright © 2004-2013. All Rights Reserved.