Class DelegatingAnnotationAccess
- java.lang.Object
- 
- org.apache.tapestry5.internal.plastic.DelegatingAnnotationAccess
 
- 
- All Implemented Interfaces:
- AnnotationAccess
 
 public class DelegatingAnnotationAccess extends java.lang.Object implements AnnotationAccess Delegating annotation access is used when resolving annotations on a class; it searches the primary annotation access and if not found there (andInheritedis on the annotation being searched), it searches in the inherited access.
- 
- 
Constructor SummaryConstructors Constructor Description DelegatingAnnotationAccess(AnnotationAccess primary, AnnotationAccess inherited)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends java.lang.annotation.Annotation>
 TgetAnnotation(java.lang.Class<T> annotationType)Returns an instantiated annotation, or null if the target does not have the indicated annotation.<T extends java.lang.annotation.Annotation>
 booleanhasAnnotation(java.lang.Class<T> annotationType)Checks to see if the target has an annotation of the given type.
 
- 
- 
- 
Constructor Detail- 
DelegatingAnnotationAccesspublic DelegatingAnnotationAccess(AnnotationAccess primary, AnnotationAccess inherited) 
 
- 
 - 
Method Detail- 
hasAnnotationpublic <T extends java.lang.annotation.Annotation> boolean hasAnnotation(java.lang.Class<T> annotationType) Description copied from interface:AnnotationAccessChecks to see if the target has an annotation of the given type.- Specified by:
- hasAnnotationin interface- AnnotationAccess
 
 - 
getAnnotationpublic <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType) Description copied from interface:AnnotationAccessReturns an instantiated annotation, or null if the target does not have the indicated annotation.- Specified by:
- getAnnotationin interface- AnnotationAccess
 
 
- 
 
-