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.internal.plastic
Class DelegatingAnnotationAccess

    java.lang.Object
      org.apache.tapestry5.internal.plastic.DelegatingAnnotationAccess

All Implemented Interfaces:
  AnnotationAccess

    public class DelegatingAnnotationAccess

extends java.lang.Object
implements 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
`DelegatingAnnotationAccess(AnnotationAccess primary, AnnotationAccess inherited)`

Method Summary
`
`<T extends java.lang.annotation.Annotation> T`
` | `getAnnotation(java.lang.Class<T> annotationType)` Returns an instantiated annotation, or null if the target does not have the indicated annotation.
`
`<T extends java.lang.annotation.Annotation> boolean`
` | `hasAnnotation(java.lang.Class<T> annotationType)` Checks to see if the target has an annotation of the given type.

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

Constructor Detail

### DelegatingAnnotationAccess

    public DelegatingAnnotationAccess(AnnotationAccess primary,
                                      AnnotationAccess inherited)

Method Detail

### hasAnnotation

    public <T extends java.lang.annotation.Annotation> boolean hasAnnotation(java.lang.Class<T> annotationType)

  Description copied from interface: `AnnotationAccess`
  Checks to see if the target has an annotation of the given type.

  Specified by:
    `hasAnnotation` in interface `AnnotationAccess`

### getAnnotation

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

  Description copied from interface: `AnnotationAccess`
  Returns an instantiated annotation, or null if the target does not have the indicated annotation.

  Specified by:
    `getAnnotation` in interface `AnnotationAccess`

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.