Class CoherenceAnnotationUtils


  • public final class CoherenceAnnotationUtils
    extends java.lang.Object
    Provides utilities for retrieving annotations from the provided InjectionPoint.
    Since:
    3.0
    Author:
    Gunnar Hillert
    • Method Detail

      • getAnnotationsMarkedWithMarkerAnnotation

        public static java.util.List<java.lang.annotation.Annotation> getAnnotationsMarkedWithMarkerAnnotation​(InjectionPoint injectionPoint,
                                                                                                               java.lang.Class markerAnnotation)
      • getSingleAnnotationMarkedWithMarkerAnnotation

        public static java.lang.annotation.Annotation getSingleAnnotationMarkedWithMarkerAnnotation​(InjectionPoint injectionPoint,
                                                                                                    java.lang.Class markerAnnotation)
      • getBeanTypeForBeanName

        public static java.lang.Class<?> getBeanTypeForBeanName​(BeanFactory beanFactory,
                                                                java.lang.String beanName)
      • getSingleBeanWithAnnotation

        public static <T> T getSingleBeanWithAnnotation​(ApplicationContext applicationContext,
                                                        java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)