public class AdviceAnnotationEvaluator extends Object
| Constructor and Description |
|---|
AdviceAnnotationEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getInstanceIfPresent(Annotation annotation) |
static String |
getNameIfPresent(Annotation annotation) |
static <T> T |
getValueIfPresent(Annotation annotation,
String name,
Class<T> output)
Finds the value of a field on an annotation.
|
static List<Annotation> |
inspect(Annotation... annotations)
Get a list of annotations in order (based on input) that have implementedBy field that is a class.
|
public static List<Annotation> inspect(Annotation... annotations)
MethodInterceptor.annotations - array of annotations.public static String getInstanceIfPresent(Annotation annotation)
public static String getNameIfPresent(Annotation annotation)
public static <T> T getValueIfPresent(Annotation annotation, String name, Class<T> output)
T - the type of the field.annotation - to inspectname - for a field with this nameoutput - and a type of this ClassCopyright © 2016–2019 AdvisedTesting. All rights reserved.