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:
  • Method Details

    • additionalAnnotatedType

      public static <X> UnbackedAnnotatedType<X> additionalAnnotatedType(String contextId, jakarta.enterprise.inject.spi.AnnotatedType<X> source, String bdaId, String suffix, SharedObjectCache cache)
    • modifiedAnnotatedType

      public static <X> UnbackedAnnotatedType<X> modifiedAnnotatedType(SlimAnnotatedType<X> originalType, jakarta.enterprise.inject.spi.AnnotatedType<X> source, SharedObjectCache cache)
    • 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>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getIdentifier

      public AnnotatedTypeIdentifier getIdentifier()
      Specified by:
      getIdentifier in interface Identified<X>