|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotationMetadata
Interface that defines abstract access to the annotations of a specific class, in a form that does not require that class to be loaded yet.
StandardAnnotationMetadata
,
MetadataReader.getAnnotationMetadata()
Method Summary | |
---|---|
Map<String,Object> |
getAnnotationAttributes(String annotationType)
Retrieve the attributes of the annotation of the given type, if any (i.e. if defined on the underlying class). |
Set<String> |
getAnnotationTypes()
Return the names of all annotation types defined on the underlying class. |
Set<String> |
getMetaAnnotationTypes(String annotationType)
Return the names of all meta-annotation types defined on the given annotation type of the underlying class. |
boolean |
hasAnnotation(String annotationType)
Determine whether the underlying class has an annotation of the given type defined. |
boolean |
hasMetaAnnotation(String metaAnnotationType)
Determine whether the underlying class has an annotation that is itself annotated with the meta-annotation of the given type. |
Methods inherited from interface org.springframework.core.type.ClassMetadata |
---|
getClassName, getEnclosingClassName, getInterfaceNames, getSuperClassName, hasEnclosingClass, hasSuperClass, isAbstract, isConcrete, isIndependent, isInterface |
Method Detail |
---|
Set<String> getAnnotationTypes()
boolean hasAnnotation(String annotationType)
annotationType
- the annotation type to look for
Set<String> getMetaAnnotationTypes(String annotationType)
boolean hasMetaAnnotation(String metaAnnotationType)
metaAnnotationType
- the meta-annotation type to look for
Map<String,Object> getAnnotationAttributes(String annotationType)
annotationType
- the annotation type to look for
null
if no matching
annotation is defined.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |