|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.metamodel.facets.FacetFactoryAbstract
org.nakedobjects.metamodel.java5.AnnotationBasedFacetFactoryAbstract
public abstract class AnnotationBasedFacetFactoryAbstract
| Constructor Summary | |
|---|---|
AnnotationBasedFacetFactoryAbstract(NakedObjectFeatureType[] featureTypes)
|
|
| Method Summary | ||
|---|---|---|
protected When |
decodeWhen(When when)
|
|
protected
|
getAnnotation(java.lang.Class<?> cls,
java.lang.Class<T> annotationClass)
Searches for annotation on provided class, and if not found for the superclass. |
|
protected
|
getAnnotation(java.lang.reflect.Method method,
java.lang.Class<T> annotationClass)
Searches for annotation on provided method, and if not found for any inherited methods up from the superclass. |
|
protected java.lang.annotation.Annotation[][] |
getParameterAnnotations(java.lang.reflect.Method method)
Searches for parameter annotations on provided method, and if not found for any inherited methods up from the superclass. |
|
protected boolean |
isAnnotationPresent(java.lang.reflect.Method method,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Searches for annotation on provided method, and if not found for any inherited methods up from the superclass. |
|
protected boolean |
isString(java.lang.Class<?> cls)
For convenience of the several annotations that apply only to Strings. |
|
boolean |
recognizes(java.lang.reflect.Method method)
Always returns false; FacetFactorys that look for annotations won't recognize methods
with prefixes. |
|
| Methods inherited from class org.nakedobjects.metamodel.facets.FacetFactoryAbstract |
|---|
getFeatureTypes, getSpecificationLoader, process, process, processParams, setSpecificationLoader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationBasedFacetFactoryAbstract(NakedObjectFeatureType[] featureTypes)
| Method Detail |
|---|
public boolean recognizes(java.lang.reflect.Method method)
FacetFactorys that look for annotations won't recognize methods
with prefixes.
protected boolean isString(java.lang.Class<?> cls)
Strings.
protected When decodeWhen(When when)
protected <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<?> cls,
java.lang.Class<T> annotationClass)
Added to allow bytecode-mangling libraries such as CGLIB to be supported.
protected <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.reflect.Method method,
java.lang.Class<T> annotationClass)
Added to allow bytecode-mangling libraries such as CGLIB to be supported.
protected boolean isAnnotationPresent(java.lang.reflect.Method method,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Added to allow bytecode-mangling libraries such as CGLIB to be supported.
protected java.lang.annotation.Annotation[][] getParameterAnnotations(java.lang.reflect.Method method)
Added to allow bytecode-mangling libraries such as CGLIB to be supported.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||