Package org.apache.tapestry5.commons.internal

# Class NullAnnotationProvider

java.lang.Object
org.apache.tapestry5.commons.internal.NullAnnotationProvider

All Implemented Interfaces:
  `AnnotationProvider`

public class NullAnnotationProvider extends Object implements AnnotationProvider
A null implementation of `AnnotationProvider`, used when there is not appropriate source of annotations.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NullAnnotationProvider()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `<T extends Annotation>
  T`
  `getAnnotation(Class<T> annotationClass)`
  Always returns null.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### NullAnnotationProvider

    public NullAnnotationProvider()

- ## Method Details

  - ### getAnnotation

    public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
    Always returns null.
    Specified by:
      `getAnnotation` in interface `AnnotationProvider`
    Parameters:
      `annotationClass` - used to select the annotation to return
    Returns:
      the annotation, or null if not found