|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.trails.descriptor.annotation.AbstractAnnotationHandler
public abstract class AbstractAnnotationHandler
| Constructor Summary | |
|---|---|
AbstractAnnotationHandler()
|
|
| Method Summary | |
|---|---|
protected boolean |
isDefault(java.lang.annotation.Annotation propertyDescriptorAnno,
java.lang.reflect.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. |
protected void |
setPropertiesFromAnnotation(java.lang.annotation.Annotation annotation,
java.lang.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAnnotationHandler()
| Method Detail |
|---|
protected boolean isDefault(java.lang.annotation.Annotation propertyDescriptorAnno,
java.lang.reflect.Method annotationMethod)
propertyDescriptorAnno - annotationMethod -
protected void setPropertiesFromAnnotation(java.lang.annotation.Annotation annotation,
java.lang.Object target)
annotation - descriptor -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||