Class DelegatingAnnotationAccess
- java.lang.Object
-
- org.apache.tapestry5.internal.plastic.DelegatingAnnotationAccess
-
- All Implemented Interfaces:
AnnotationAccess
public class DelegatingAnnotationAccess extends 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 (andInherited
is on the annotation being searched), it searches in the inherited access.
-
-
Constructor Summary
Constructors Constructor Description DelegatingAnnotationAccess(AnnotationAccess primary, AnnotationAccess inherited)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Annotation>
TgetAnnotation(Class<T> annotationType)
Returns an instantiated annotation, or null if the target does not have the indicated annotation.<T extends Annotation>
booleanhasAnnotation(Class<T> annotationType)
Checks to see if the target has an annotation of the given type.
-
-
-
Constructor Detail
-
DelegatingAnnotationAccess
public DelegatingAnnotationAccess(AnnotationAccess primary, AnnotationAccess inherited)
-
-
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 interfaceAnnotationAccess
-
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 interfaceAnnotationAccess
-
-