Class CoherenceAnnotationUtils


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

      • getAnnotationsMarkedWithMarkerAnnotation

        public static List<Annotation> getAnnotationsMarkedWithMarkerAnnotation​(InjectionPoint injectionPoint,
                                                                                Class markerAnnotation)
      • getSingleAnnotationMarkedWithMarkerAnnotation

        public static Annotation getSingleAnnotationMarkedWithMarkerAnnotation​(InjectionPoint injectionPoint,
                                                                               Class markerAnnotation)
      • getBeanTypeForBeanName

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

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