Class Typed.Literal

java.lang.Object
jakarta.enterprise.util.AnnotationLiteral<Typed>
jakarta.enterprise.inject.Typed.Literal
All Implemented Interfaces:
Annotation
Enclosing class:
Typed

public static final class Typed.Literal extends AnnotationLiteral<Typed> implements Typed
Supports inline instantiation of the Typed annotation.
Since:
2.0
Author:
Martin Kouba
See Also:
  • Field Details

    • INSTANCE

      public static final Typed.Literal INSTANCE
      Default Typed literal
  • Method Details

    • of

      public static Typed.Literal of(Class<?>[] value)
      Obtain the Typed literal for the provided bean types
      Parameters:
      value - the classes corresponding to the bean types of the bean
      Returns:
      a new Literal value for the provided classes
    • value

      public Class<?>[] value()
      Returns:
      the classes corresponding to the bean types of the bean