abstract class AnnotationLiteral<T : Annotation!> : Serializable
Supports inline instantiation of annotation type instances.
An instance of an annotation type may be obtained by subclassing AnnotationLiteral.
public abstract class PayByQualifier
extends AnnotationLiteral<PayBy>
implements PayBy {}
PayBy paybyCheque = new PayByQualifier() { public PaymentMethod value() { return CHEQUE; } };
Author
Pete Muir
Author
Gavin King see javax.enterprise.inject.Instance#select(Annotation...) see javax.enterprise.event.Event#select(Annotation...)
AnnotationLiteral() |
open fun annotationType(): Class<out Annotation!>! |
|
open fun equals(other: Any?): Boolean |
|
open fun hashCode(): Int |
|
open fun toString(): String |
open class NamedAnnotationLiteral : AnnotationLiteral<Named!>, Named
A convenience annotation literal for the @Named annotation. |