Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.ioc.internal.services
Class AnnotationProviderChain

    java.lang.Object
      org.apache.tapestry5.ioc.internal.services.AnnotationProviderChain

All Implemented Interfaces:
  AnnotationProvider

    public class AnnotationProviderChain

extends java.lang.Object
implements AnnotationProvider

Chain of command for `AnnotationProvider`.

Constructor Summary
`AnnotationProviderChain(AnnotationProvider[] providers)`

Method Summary
`static AnnotationProvider` | `create(java.util.List<AnnotationProvider> providers)` Creates an AnnotationProvider from the list of providers.
`
`<T extends java.lang.annotation.Annotation> T`
` | `getAnnotation(java.lang.Class<T> annotationClass)` Searches for the specified annotation, returning the matching annotation instance.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AnnotationProviderChain

    public AnnotationProviderChain(AnnotationProvider[] providers)

Method Detail

### create

    public static AnnotationProvider create(java.util.List<AnnotationProvider> providers)

  Creates an AnnotationProvider from the list of providers. Returns either an `AnnotationProviderChain` or the sole element in the list.

### getAnnotation

    public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)

  Description copied from interface: `AnnotationProvider`
  Searches for the specified annotation, returning the matching annotation instance.

  Specified by:
    `getAnnotation` in interface `AnnotationProvider`
  Parameters:
    `annotationClass` - used to select the annotation to return
  Returns:
    the annotation, or null if not found

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.