Class AnnotationDescription.Latent.Loadable<S extends java.lang.annotation.Annotation>

    • Constructor Detail

      • Loadable

        protected Loadable​(java.lang.Class<S> annotationType)
        Creates a loadable version of a latent annotation description.
        Parameters:
        annotationType - The annotation type.
    • Method Detail

      • load

        public S load()
               throws java.lang.ClassNotFoundException
        Description copied from interface: AnnotationDescription.Loadable
        Loads this annotation description. This causes all classes referenced by the annotation value to be loaded. Without specifying a class loader, the annotation's class loader which was used to prepare this instance is used.
        Returns:
        A loaded version of this annotation description.
        Throws:
        java.lang.ClassNotFoundException - If any linked classes of the annotation cannot be loaded.
      • getAnnotationType

        public TypeDescription getAnnotationType()
        Description copied from interface: AnnotationDescription
        Returns a description of the annotation type of this annotation.
        Returns:
        A description of the annotation type of this annotation.
      • prepare

        public <T extends java.lang.annotation.Annotation> AnnotationDescription.Loadable<T> prepare​(java.lang.Class<T> annotationType)
        Description copied from interface: AnnotationDescription
        Links this annotation description to a given annotation type such that it can be loaded. This does not cause the values of this annotation to be loaded.
        Type Parameters:
        T - The type of the annotation.
        Parameters:
        annotationType - The loaded annotation type of this annotation description.
        Returns:
        A loadable version of this annotation description.