Class StandardAnnotationDescriptor<A extends Annotation>

All Implemented Interfaces:
AnnotationTargetSupport, Storable<AnnotationDescriptor<A>,SerialAnnotationDescriptor<A>>, AnnotationDescriptor<A>, AnnotationTarget, MutableAnnotationTarget

public class StandardAnnotationDescriptor<A extends Annotation> extends AbstractAnnotationDescriptor<A>
Simple implementation of AnnotationDescriptor.
  • Constructor Details

    • StandardAnnotationDescriptor

      public StandardAnnotationDescriptor(Class<A> annotationType, ModelsContext modelsContext)
    • StandardAnnotationDescriptor

      public StandardAnnotationDescriptor(Class<A> annotationType, AnnotationDescriptor<?> repeatableContainer, ModelsContext modelsContext)
  • Method Details

    • getUsageMap

      public Map<Class<? extends Annotation>,? extends Annotation> getUsageMap()
      Description copied from interface: AnnotationTargetSupport
      Access to all annotation usages on this target.
    • createUsage

      public A createUsage(A jdkAnnotation, ModelsContext context)
      Description copied from interface: AnnotationDescriptor
      Create a usage from the JDK representation. This will often just return the passed annotation, although for Hibernate and JPA annotations we generally want wrappers to be able to manipulate the values.
    • createUsage

      public A createUsage(ModelsContext context)
      Description copied from interface: AnnotationDescriptor
      Create an empty usage. Used when there is no source form, such as XML processing.
    • getAttributes

      public List<AttributeDescriptor<?>> getAttributes()
      Description copied from interface: AnnotationDescriptor
      The attributes of the annotation