|
|||||||||
| 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(java.lang.Class introspectedClass)
Create a new StandardAnnotationMetadata wrapper for the given Class. |
|
| Method Summary | |
|---|---|
java.util.Set<MethodMetadata> |
getAnnotatedMethods()
Retrieve the method metadata for all methods that are annotated with at least one annotation type. |
java.util.Set<MethodMetadata> |
getAnnotatedMethods(java.lang.String annotationType)
Retrieve the method metadata for all methods that have the given annotation type. |
java.util.Map<java.lang.String,java.lang.Object> |
getAnnotationAttributes(java.lang.String annotationType)
Retrieve the attributes of the annotation of the given type, if any (i.e. |
java.util.Set<java.lang.String> |
getAnnotationTypes()
Return the names of all annotation types defined on the underlying class. |
java.util.Set<java.lang.String> |
getMetaAnnotationTypes(java.lang.String annotationType)
Return the names of all meta-annotation types defined on the given annotation type of the underlying class. |
boolean |
hasAnnotation(java.lang.String annotationType)
Determine whether the underlying class has an annotation of the given type defined. |
boolean |
hasMetaAnnotation(java.lang.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, isFinal, 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, isFinal, isIndependent, isInterface |
| Constructor Detail |
|---|
public StandardAnnotationMetadata(java.lang.Class introspectedClass)
introspectedClass - the Class to introspect| Method Detail |
|---|
public java.util.Set<java.lang.String> getAnnotationTypes()
AnnotationMetadata
getAnnotationTypes in interface AnnotationMetadatapublic java.util.Set<java.lang.String> getMetaAnnotationTypes(java.lang.String annotationType)
AnnotationMetadata
getMetaAnnotationTypes in interface AnnotationMetadataannotationType - the meta-annotation type to look for
public boolean hasAnnotation(java.lang.String annotationType)
AnnotationMetadata
hasAnnotation in interface AnnotationMetadataannotationType - the annotation type to look for
public boolean hasMetaAnnotation(java.lang.String annotationType)
AnnotationMetadata
hasMetaAnnotation in interface AnnotationMetadataannotationType - the meta-annotation type to look for
public java.util.Map<java.lang.String,java.lang.Object> getAnnotationAttributes(java.lang.String annotationType)
AnnotationMetadata
getAnnotationAttributes in interface AnnotationMetadataannotationType - the annotation type to look for
null if no matching annotation is defined.public java.util.Set<MethodMetadata> getAnnotatedMethods()
AnnotationMetadata
getAnnotatedMethods in interface AnnotationMetadataMethodMetadata for methods that have annotations.
The return value will be an empty set if no annotated methods are found.public java.util.Set<MethodMetadata> getAnnotatedMethods(java.lang.String annotationType)
AnnotationMetadata
getAnnotatedMethods in interface AnnotationMetadataannotationType - the annotation type to look for
MethodMetadata for methods that have a matching
annotation. The return value will be an empty set if no methods match
the annotation type.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||