Class SlimAnnotatedTypeContext<T>

java.lang.Object
org.jboss.weld.annotated.slim.SlimAnnotatedTypeContext<T>
Type Parameters:
T - the type

public class SlimAnnotatedTypeContext<T> extends Object
Holds SlimAnnotatedType and additional information attached to the type. This is a boot-time construct and should be released after bootstrap.
Author:
Jozef Hartinger
  • Method Details

    • of

      public static <T> SlimAnnotatedTypeContext<T> of(SlimAnnotatedType<T> type, org.jboss.weld.resources.spi.ClassFileInfo classInfo, Set<ContainerLifecycleEventObserverMethod<?>> resolvedProcessAnnotatedTypeObservers)
    • of

      public static <T> SlimAnnotatedTypeContext<T> of(SlimAnnotatedType<T> type)
    • of

      public static <T> SlimAnnotatedTypeContext<T> of(SlimAnnotatedType<T> type, jakarta.enterprise.inject.spi.Extension extension)
    • getAnnotatedType

      public SlimAnnotatedType<T> getAnnotatedType()
      Returns:
      the annotated type
    • getClassInfo

      public org.jboss.weld.resources.spi.ClassFileInfo getClassInfo()
      Returns:
      ClassFileInfo describing the underlying class. This attribute is only available if the integrator provided ClassFileServices and the underlying type is comes from scanning (not registered by an extension).
    • getResolvedProcessAnnotatedTypeObservers

      public Set<ContainerLifecycleEventObserverMethod<?>> getResolvedProcessAnnotatedTypeObservers()
      Returns:
      the set of ProcessAnnotatedType observer method to which the ProcessAnnotatedType event for this type is assignable. This attribute is only available if the integrator provided ClassFileServices and the underlying type is comes from scanning (not registered by an extension).
    • getExtension

      public jakarta.enterprise.inject.spi.Extension getExtension()
      Returns:
      the extension that registered this annotated type or null if the type comes from scanning
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public String toString()
      Overrides:
      toString in class Object