Class UnbackedAnnotatedType<X>

  • Type Parameters:
    X - the type
    All Implemented Interfaces:
    jakarta.enterprise.inject.spi.Annotated, jakarta.enterprise.inject.spi.AnnotatedType<X>, Serializable, Identified<AnnotatedTypeIdentifier>, SlimAnnotatedType<X>

    public class UnbackedAnnotatedType<X>
    extends UnbackedAnnotated
    implements SlimAnnotatedType<X>, Serializable
    Wrapper for extension-provided AnnotatedType. This may seem unnecessary, however it does mean we are providing a consistent view for debugging, error reporting etc. This implementation is also serializable no matter if the original extension-provided AnnotatedType implementation is.
    Author:
    Pete Muir, Jozef Hartinger
    See Also:
    Serialized Form
    • Method Detail

      • getJavaClass

        public Class<X> getJavaClass()
        Specified by:
        getJavaClass in interface jakarta.enterprise.inject.spi.AnnotatedType<X>
      • getConstructors

        public Set<jakarta.enterprise.inject.spi.AnnotatedConstructor<X>> getConstructors()
        Specified by:
        getConstructors in interface jakarta.enterprise.inject.spi.AnnotatedType<X>
      • getMethods

        public Set<jakarta.enterprise.inject.spi.AnnotatedMethod<? super X>> getMethods()
        Specified by:
        getMethods in interface jakarta.enterprise.inject.spi.AnnotatedType<X>
      • getFields

        public Set<jakarta.enterprise.inject.spi.AnnotatedField<? super X>> getFields()
        Specified by:
        getFields in interface jakarta.enterprise.inject.spi.AnnotatedType<X>
      • clear

        public void clear()
        Description copied from interface: SlimAnnotatedType
        Clear up cached content to save memory. Called after bootstrap is complete.
        Specified by:
        clear in interface SlimAnnotatedType<X>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object