Class AnnotationUtil


  • public final class AnnotationUtil
    extends java.lang.Object
    Allow classpath scanning for annotations
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Set<java.lang.String> find​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
      Finds all classes with the given annotation
      static java.util.Set<java.lang.String> find​(java.lang.String strAnnotation)
      Finds all classes with the given annotation
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • find

        public static java.util.Set<java.lang.String> find​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
        Finds all classes with the given annotation
        Parameters:
        annotationType - the annotation class
        Returns:
        all classes founds
      • find

        public static java.util.Set<java.lang.String> find​(java.lang.String strAnnotation)
        Finds all classes with the given annotation
        Parameters:
        strAnnotation - the annotation class name
        Returns:
        all classes founds