Package org.junit.jupiter.params.support
Class AnnotationConsumerInitializer
- java.lang.Object
-
- org.junit.jupiter.params.support.AnnotationConsumerInitializer
-
@API(status=INTERNAL, since="5.0") public final class AnnotationConsumerInitializer extends java.lang.ObjectAnnotationConsumerInitializeris an internal helper class for initializingAnnotationConsumers.- Since:
- 5.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classAnnotationConsumerInitializer.AnnotationConsumingMethodSignature
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<AnnotationConsumerInitializer.AnnotationConsumingMethodSignature>annotationConsumingMethodSignatures
-
Constructor Summary
Constructors Modifier Constructor Description privateAnnotationConsumerInitializer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static <T extends java.lang.annotation.Annotation>
java.util.List<T>findAnnotations(java.lang.reflect.AnnotatedElement annotatedElement, java.lang.Class<T> annotationType)private static <T> java.lang.Class<? extends java.lang.annotation.Annotation>findConsumedAnnotationType(T annotationConsumerInstance)private static java.lang.Class<? extends java.lang.annotation.Annotation>getAnnotationType(java.lang.reflect.Method method)static <T> Tinitialize(java.lang.reflect.AnnotatedElement annotatedElement, T annotationConsumerInstance)private static <A extends java.lang.annotation.Annotation>
voidinitializeAnnotationConsumer(AnnotationConsumer<A> instance, A annotation)
-
-
-
Field Detail
-
annotationConsumingMethodSignatures
private static final java.util.List<AnnotationConsumerInitializer.AnnotationConsumingMethodSignature> annotationConsumingMethodSignatures
-
-
Method Detail
-
initialize
public static <T> T initialize(java.lang.reflect.AnnotatedElement annotatedElement, T annotationConsumerInstance)
-
findAnnotations
private static <T extends java.lang.annotation.Annotation> java.util.List<T> findAnnotations(java.lang.reflect.AnnotatedElement annotatedElement, java.lang.Class<T> annotationType)
-
findConsumedAnnotationType
private static <T> java.lang.Class<? extends java.lang.annotation.Annotation> findConsumedAnnotationType(T annotationConsumerInstance)
-
getAnnotationType
private static java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotationType(java.lang.reflect.Method method)
-
initializeAnnotationConsumer
private static <A extends java.lang.annotation.Annotation> void initializeAnnotationConsumer(AnnotationConsumer<A> instance, A annotation)
-
-