Example usage for org.springframework.core.annotation AnnotationUtils getDeclaredRepeatableAnnotations

List of usage examples for org.springframework.core.annotation AnnotationUtils getDeclaredRepeatableAnnotations

Introduction

In this page you can find the example usage for org.springframework.core.annotation AnnotationUtils getDeclaredRepeatableAnnotations.

Prototype

@Deprecated
public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(AnnotatedElement annotatedElement,
        Class<A> annotationType) 

Source Link

Document

Get the declared repeatable Annotation annotations of annotationType from the supplied AnnotatedElement , where such annotations are either directly present, indirectly present, or meta-present on the element.

Usage

From source file:org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.java

private Set<Timed> findTimedAnnotations(AnnotatedElement element) {
    return AnnotationUtils.getDeclaredRepeatableAnnotations(element, Timed.class);
}