org.glassfish.hk2.api
Class AnnotationLiteral<T extends java.lang.annotation.Annotation>

java.lang.Object
  extended by org.glassfish.hk2.api.AnnotationLiteral<T>
Type Parameters:
T - the annotation type
All Implemented Interfaces:
java.io.Serializable, java.lang.annotation.Annotation
Direct Known Subclasses:
NamedImpl

public abstract class AnnotationLiteral<T extends java.lang.annotation.Annotation>
extends java.lang.Object
implements java.lang.annotation.Annotation, java.io.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

Constructor Summary
protected AnnotationLiteral()
           
 
Method Summary
 java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
           
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.annotation.Annotation
toString
 

Constructor Detail

AnnotationLiteral

protected AnnotationLiteral()
Method Detail

annotationType

public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
Specified by:
annotationType in interface java.lang.annotation.Annotation

equals

public boolean equals(java.lang.Object other)
Specified by:
equals in interface java.lang.annotation.Annotation
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface java.lang.annotation.Annotation
Overrides:
hashCode in class java.lang.Object


Copyright © 2012 Oracle Corporation. All Rights Reserved.