org.apache.tapestry5.ioc
Interface AnnotationProvider
- All Known Subinterfaces:
- PropertyAdapter
- All Known Implementing Classes:
- AccessableObjectAnnotationProvider, AnnotationProviderChain, NullAnnotationProvider, PropertyAdapterImpl
public interface AnnotationProvider
A source of annotations. This interface is used to mask where the annotations come from (for example, from a Method,
a Class, or some other source).
|
Method Summary |
<T extends java.lang.annotation.Annotation>
T |
|
getAnnotation(java.lang.Class<T> annotationClass)
Searches for the specified annotation, returning the matching annotation instance. |
getAnnotation
<T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
- Searches for the specified annotation, returning the matching annotation instance.
- Type Parameters:
T - - Parameters:
annotationClass - used to select the annotation to return�
- Returns:
- the annotation, or null if not found
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.