Package org.springframework.test.util
Class MetaAnnotationUtils.UntypedAnnotationDescriptor
- java.lang.Object
- org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor<Annotation>
- org.springframework.test.util.MetaAnnotationUtils.UntypedAnnotationDescriptor
- Enclosing class:
- MetaAnnotationUtils
public static class MetaAnnotationUtils.UntypedAnnotationDescriptor extends MetaAnnotationUtils.AnnotationDescriptor<Annotation>
Untyped extension ofAnnotationDescriptor
that is used to describe the declaration of one of several candidate annotation types where the actual annotation type cannot be predetermined.
Constructor Summary
Constructors Constructor Description UntypedAnnotationDescriptor(Class<?> rootDeclaringClass, Annotation annotation)
UntypedAnnotationDescriptor(Class<?> rootDeclaringClass, Class<?> declaringClass, Annotation composedAnnotation, Annotation annotation)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Annotation
synthesizeAnnotation()
Throws anUnsupportedOperationException
since the type of annotation represented by theAnnotationAttributes
in anUntypedAnnotationDescriptor
is unknown.Methods inherited from class org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor
getAnnotation, getAnnotationAttributes, getAnnotationType, getComposedAnnotation, getComposedAnnotationType, getDeclaringClass, getRootDeclaringClass, toString
Constructor Detail
UntypedAnnotationDescriptor
public UntypedAnnotationDescriptor(Class<?> rootDeclaringClass, Annotation annotation)
UntypedAnnotationDescriptor
public UntypedAnnotationDescriptor(Class<?> rootDeclaringClass, Class<?> declaringClass, @Nullable Annotation composedAnnotation, Annotation annotation)
Method Detail
synthesizeAnnotation
public Annotation synthesizeAnnotation()
Throws anUnsupportedOperationException
since the type of annotation represented by theAnnotationAttributes
in anUntypedAnnotationDescriptor
is unknown.- Overrides:
synthesizeAnnotation
in classMetaAnnotationUtils.AnnotationDescriptor<Annotation>
- Since:
- 4.2
- See Also:
MetaAnnotationUtils.AnnotationDescriptor.getAnnotationAttributes()
,MetaAnnotationUtils.AnnotationDescriptor.getAnnotationType()
,AnnotationUtils.synthesizeAnnotation(java.util.Map, Class, java.lang.reflect.AnnotatedElement)