Class BLCAnnotationUtils
java.lang.Object
org.broadleafcommerce.common.util.BLCAnnotationUtils
Deprecated.
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends Annotation>
AgetAnnotationFromClassOrInterface(Class<A> annotationClass, Class clazz) Deprecated.use SPring'sAnnotationUtilsinstead
-
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'sAnnotationUtilsinsteadRather than using this method, consider using Spring's
AnnotationUtilswhich also includes support for composed, meta-annotations and synthesizing annotations withAliasFor.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
-
AnnotationUtilsinstead.