Package jakarta.enterprise.inject
Class Typed.Literal
- java.lang.Object
-
- jakarta.enterprise.util.AnnotationLiteral<Typed>
-
- jakarta.enterprise.inject.Typed.Literal
-
- All Implemented Interfaces:
java.lang.annotation.Annotation
- Enclosing class:
- Typed
public static final class Typed.Literal extends AnnotationLiteral<Typed> implements Typed
Supports inline instantiation of theTyped
annotation.- Since:
- 2.0
- Author:
- Martin Kouba
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jakarta.enterprise.inject.Typed
Typed.Literal
-
-
Field Summary
Fields Modifier and Type Field Description static Typed.Literal
INSTANCE
Default Typed literal
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Typed.Literal
of(java.lang.Class<?>[] value)
Obtain the Typed literal for the provided bean typesjava.lang.Class<?>[]
value()
-
Methods inherited from class jakarta.enterprise.util.AnnotationLiteral
annotationType, equals, hashCode, toString
-
-
-
-
Field Detail
-
INSTANCE
public static final Typed.Literal INSTANCE
Default Typed literal
-
-
Method Detail
-
of
public static Typed.Literal of(java.lang.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 java.lang.Class<?>[] value()
- Returns:
- the classes corresponding to the bean types of the bean
-
-