Class AnnotationProviderChain
java.lang.Object
org.apache.tapestry5.commons.internal.services.AnnotationProviderChain
- All Implemented Interfaces:
AnnotationProvider
Chain of command for
AnnotationProvider
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationProvider
create
(List<AnnotationProvider> providers) Creates an AnnotationProvider from the list of providers.<T extends Annotation>
TgetAnnotation
(Class<T> annotationClass) Searches for the specified annotation, returning the matching annotation instance.
-
Constructor Details
-
AnnotationProviderChain
-
-
Method Details
-
create
Creates an AnnotationProvider from the list of providers. Returns either anAnnotationProviderChain
or the sole element in the list. -
getAnnotation
Description copied from interface:AnnotationProvider
Searches for the specified annotation, returning the matching annotation instance.- Specified by:
getAnnotation
in interfaceAnnotationProvider
- Parameters:
annotationClass
- used to select the annotation to return- Returns:
- the annotation, or null if not found
-