org.apache.turbine.annotation

## Class AnnotationProcessor

- java.lang.Object
- - org.apache.turbine.annotation.AnnotationProcessor

-     public class AnnotationProcessor
      extends Object

  AnnotationProcessor contains static helper methods that handle the Turbine annotations for objects
  Version:
    $Id: TurbineAssemblerBrokerService.java 1521103 2013-09-09 13:38:07Z tv $
  Author:
    Thomas Vandahl

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AnnotationProcessor()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Annotation[]` | `getAnnotations(AccessibleObject object)` Get cached annotations for field, class or method
    `static void` | `process(Object object)` Search for annotated fields of the object and inject the appropriate objects

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

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

- - ### Constructor Detail

    - #### AnnotationProcessor

          public AnnotationProcessor()

  - ### Method Detail

    - #### getAnnotations

          public static Annotation[] getAnnotations(AccessibleObject object)

      Get cached annotations for field, class or method
      Parameters:
        `object` - a field, class or method
      Returns:
        the declared annotations for the object

    - #### process

          public static void process(Object object)
                              throws TurbineException

      Search for annotated fields of the object and inject the appropriate objects
      Parameters:
        `object` - the object
      Throws:
        `TurbineException` - if the objects could not be injected

Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.