org.glassfish.hk2.api
Class AnnotationLiteral<T extends Annotation>
java.lang.Object
org.glassfish.hk2.api.AnnotationLiteral<T>
- Type Parameters:
T - the annotation type
- All Implemented Interfaces:
- Serializable, Annotation
- Direct Known Subclasses:
- NamedImpl
public abstract class AnnotationLiteral<T extends Annotation>
- extends Object
- implements 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 {}
- Author:
- jwells
- See Also:
- Serialized Form
AnnotationLiteral
protected AnnotationLiteral()
annotationType
public Class<? extends Annotation> annotationType()
- Specified by:
annotationType in interface Annotation
equals
public boolean equals(Object other)
- Specified by:
equals in interface Annotation- Overrides:
equals in class Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface Annotation- Overrides:
hashCode in class Object
Copyright © 2012 Oracle Corporation. All Rights Reserved.