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

    • Field Detail

      • annotationType

        private final java.lang.Class<S extends java.lang.annotation.Annotation> annotationType
        The annotation type.
    • 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()
        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.
        Specified by:
        load in interface AnnotationDescription.Loadable<S extends java.lang.annotation.Annotation>
        Returns:
        A loaded version of this annotation description.
      • prepare

        public <T extends java.lang.annotation.Annotation> AnnotationDescription.Loadable<T> prepare​(java.lang.Class<T> annotationType)
        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.
        Specified by:
        prepare in interface AnnotationDescription
        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.