Class AnnotationUtil

java.lang.Object
com.sun.enterprise.util.AnnotationUtil

public class AnnotationUtil extends Object
Place for handy annotation utils.
Author:
mmares
  • Constructor Details

    • AnnotationUtil

      public AnnotationUtil()
  • Method Details

    • presentTransitive

      public static boolean presentTransitive(Class<? extends Annotation> annotationClass, Class<?> type)
      If annotation is present on given type or on annotation which is on given type.
    • createAnnotationInstances

      @SafeVarargs public static Annotation[] createAnnotationInstances(Class<?>... types)
    • createAnnotationInstance

      public static Annotation createAnnotationInstance(Class<?> type)