Class AnnotationParserImpl

java.lang.Object
org.duracloud.account.db.util.security.impl.AnnotationParserImpl
All Implemented Interfaces:
AnnotationParser

public class AnnotationParserImpl extends Object implements AnnotationParser
This class provides a utility for searching through a class and its hierarchy for a given annotation. Once the methods with the given annotation are found, a mapping of the method names and annotation argument values is returned.
Author:
Andrew Woods Date: 4/8/11
  • Constructor Details

    • AnnotationParserImpl

      public AnnotationParserImpl()
  • Method Details

    • getMethodAnnotationsForClass

      public Map<String,Object[]> getMethodAnnotationsForClass(Class annotationClass, Class targetClass)
      Description copied from interface: AnnotationParser
      This method searches through a class and its hierarchy for a given annotation. Once the methods with the given annotation are found, a mapping of the method names and annotation argument values is returned.
      Specified by:
      getMethodAnnotationsForClass in interface AnnotationParser
      Parameters:
      annotationClass - sought
      targetClass - over which annotation should be found
      Returns:
      map of method names and annotation arguments