Class DelegatingAnnotationAccess
java.lang.Object
org.apache.tapestry5.internal.plastic.DelegatingAnnotationAccess
- All Implemented Interfaces:
AnnotationAccess
Delegating annotation access is used when resolving annotations on a class; it searches the primary
annotation access and if not found there (and
Inherited is on the annotation being searched),
it searches in the inherited access.-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingAnnotationAccess(AnnotationAccess primary, AnnotationAccess inherited) -
Method Summary
Modifier and TypeMethodDescription<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 Details
-
DelegatingAnnotationAccess
-
-
Method Details
-
hasAnnotation
Description copied from interface:AnnotationAccessChecks to see if the target has an annotation of the given type.- Specified by:
hasAnnotationin interfaceAnnotationAccess
-
getAnnotation
Description copied from interface:AnnotationAccessReturns an instantiated annotation, or null if the target does not have the indicated annotation.- Specified by:
getAnnotationin interfaceAnnotationAccess
-