|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.core.type.StandardClassMetadata
org.springframework.core.type.StandardAnnotationMetadata
public class StandardAnnotationMetadata
AnnotationMetadata
implementation that uses standard reflection
to introspect a given Class
.
Constructor Summary | |
---|---|
StandardAnnotationMetadata(Class introspectedClass)
|
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 annotationType)
Determine whether the underlying class has an annotation that is itself annotated with the meta-annotation of the given type. |
Methods inherited from class org.springframework.core.type.StandardClassMetadata |
---|
getClassName, getEnclosingClassName, getInterfaceNames, getIntrospectedClass, getSuperClassName, hasEnclosingClass, hasSuperClass, isAbstract, isConcrete, isIndependent, isInterface |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.core.type.ClassMetadata |
---|
getClassName, getEnclosingClassName, getInterfaceNames, getSuperClassName, hasEnclosingClass, hasSuperClass, isAbstract, isConcrete, isIndependent, isInterface |
Constructor Detail |
---|
public StandardAnnotationMetadata(Class introspectedClass)
Method Detail |
---|
public Set<String> getAnnotationTypes()
AnnotationMetadata
getAnnotationTypes
in interface AnnotationMetadata
public boolean hasAnnotation(String annotationType)
AnnotationMetadata
hasAnnotation
in interface AnnotationMetadata
annotationType
- the annotation type to look for
public Set<String> getMetaAnnotationTypes(String annotationType)
AnnotationMetadata
getMetaAnnotationTypes
in interface AnnotationMetadata
public boolean hasMetaAnnotation(String annotationType)
AnnotationMetadata
hasMetaAnnotation
in interface AnnotationMetadata
annotationType
- the meta-annotation type to look for
public Map<String,Object> getAnnotationAttributes(String annotationType)
AnnotationMetadata
getAnnotationAttributes
in interface AnnotationMetadata
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 |