Class BLCAnnotationUtils

java.lang.Object
org.broadleafcommerce.common.util.BLCAnnotationUtils

@Deprecated public class BLCAnnotationUtils extends Object
Deprecated.
use Spring's AnnotationUtils instead.

Spring has a much more elaborate and full-featured version of this within its AnnotationUtils. Consider using that instead of relying on this class.

Convenience methods for interacting with annotations.

Author:
Chris Kittrell
  • Constructor Details

    • BLCAnnotationUtils

      public BLCAnnotationUtils()
      Deprecated.
  • Method Details

    • getAnnotationFromClassOrInterface

      @Deprecated public static <A extends Annotation> A getAnnotationFromClassOrInterface(Class<A> annotationClass, Class clazz)
      Deprecated.
      use SPring's AnnotationUtils instead

      Rather than using this method, consider using Spring's AnnotationUtils which also includes support for composed, meta-annotations and synthesizing annotations with AliasFor.

      Given an array and a typed predicate, determines if the array has an object that matches the condition of the predicate. The predicate should evaluate to true when a match occurs.

      Parameters:
      annotationClass -
      clazz -
      Returns:
      the annotation of annotationClass if it can be found