org.apache.tapestry5.internal.plastic
Class EmptyAnnotationAccess

java.lang.Object
  extended by org.apache.tapestry5.internal.plastic.EmptyAnnotationAccess
All Implemented Interfaces:
AnnotationAccess

public class EmptyAnnotationAccess
extends Object
implements AnnotationAccess


Field Summary
static AnnotationAccess SINGLETON
           
 
Method Summary
<T extends Annotation>
T
getAnnotation(Class<T> annotationType)
          Returns an instantiated annotation, or null if the target does not have the indicated annotation.
<T extends Annotation>
boolean
hasAnnotation(Class<T> annotationType)
          Checks to see if the target has an annotation of the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLETON

public static final AnnotationAccess SINGLETON
Method Detail

hasAnnotation

public <T extends Annotation> boolean hasAnnotation(Class<T> annotationType)
Description copied from interface: AnnotationAccess
Checks to see if the target has an annotation of the given type.

Specified by:
hasAnnotation in interface AnnotationAccess

getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> annotationType)
Description copied from interface: AnnotationAccess
Returns an instantiated annotation, or null if the target does not have the indicated annotation.

Specified by:
getAnnotation in interface AnnotationAccess


Copyright © 2003-2012 The Apache Software Foundation.