org.apache.tapestry5.ioc
Interface AnnotationProvider

All Known Subinterfaces:
BeanEditContext, Binding, ClassTransformation, InternalClassTransformation, ParameterAccess, PropertyAdapter, PropertyConduit, PropertyEditContext, PropertyModel
All Known Implementing Classes:
AbstractBinding, AccessableObjectAnnotationProvider, AnnotationProviderChain, AssetBindingFactory.AssetBinding, AttributeExpansionBinding, BasePropertyConduit, BlockBinding, CoercingPropertyConduitWrapper, ComponentBinding, InheritedBinding, InternalClassTransformationImpl, LiteralBinding, LiteralPropertyConduit, NullAnnotationProvider, PropBinding, PropertyAdapterImpl, PropertyModelImpl, RenderVariableBinding, VariantBinding

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 Annotation>
T
getAnnotation(Class<T> annotationClass)
          Searches for the specified annotation, returning the matching annotation instance.
 

Method Detail

getAnnotation

<T extends Annotation> T getAnnotation(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-2009 Apache Software Foundation. All Rights Reserved.