Class CoherenceAnnotationUtils
java.lang.Object
com.oracle.coherence.spring.configuration.support.CoherenceAnnotationUtils
Provides utilities for retrieving annotations from the provided
InjectionPoint
.- Since:
- 3.0
- Author:
- Gunnar Hillert
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<Annotation>
getAnnotationsMarkedWithMarkerAnnotation
(InjectionPoint injectionPoint, Class markerAnnotation) static <T> Collection<T>
getBeansOfTypeWithAnnotation
(ConfigurableApplicationContext applicationContext, Class<? extends T> beanType, Class<? extends Annotation> annotationType) static Class<?>
getBeanTypeForBeanName
(BeanFactory beanFactory, String beanName) static Annotation
getSingleAnnotationMarkedWithMarkerAnnotation
(InjectionPoint injectionPoint, Class markerAnnotation) static <T> T
getSingleBeanWithAnnotation
(ApplicationContext applicationContext, Class<? extends Annotation> annotationType)
-
Method Details
-
getAnnotationsMarkedWithMarkerAnnotation
public static List<Annotation> getAnnotationsMarkedWithMarkerAnnotation(InjectionPoint injectionPoint, Class markerAnnotation) -
getSingleAnnotationMarkedWithMarkerAnnotation
public static Annotation getSingleAnnotationMarkedWithMarkerAnnotation(InjectionPoint injectionPoint, Class markerAnnotation) -
getBeanTypeForBeanName
-
getSingleBeanWithAnnotation
public static <T> T getSingleBeanWithAnnotation(ApplicationContext applicationContext, Class<? extends Annotation> annotationType) -
getBeansOfTypeWithAnnotation
public static <T> Collection<T> getBeansOfTypeWithAnnotation(ConfigurableApplicationContext applicationContext, Class<? extends T> beanType, Class<? extends Annotation> annotationType)
-