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(org.springframework.beans.factory.InjectionPoint injectionPoint, Class markerAnnotation) static <T> Collection<T>getBeansOfTypeWithAnnotation(org.springframework.context.ConfigurableApplicationContext applicationContext, Class<? extends T> beanType, Class<? extends Annotation> annotationType) static Class<?>getBeanTypeForBeanName(org.springframework.beans.factory.BeanFactory beanFactory, String beanName) static AnnotationgetSingleAnnotationMarkedWithMarkerAnnotation(org.springframework.beans.factory.InjectionPoint injectionPoint, Class markerAnnotation) static <T> TgetSingleBeanWithAnnotation(org.springframework.context.ApplicationContext applicationContext, Class<? extends Annotation> annotationType)
-
Method Details
-
getAnnotationsMarkedWithMarkerAnnotation
public static List<Annotation> getAnnotationsMarkedWithMarkerAnnotation(org.springframework.beans.factory.InjectionPoint injectionPoint, Class markerAnnotation) -
getSingleAnnotationMarkedWithMarkerAnnotation
public static Annotation getSingleAnnotationMarkedWithMarkerAnnotation(org.springframework.beans.factory.InjectionPoint injectionPoint, Class markerAnnotation) -
getBeanTypeForBeanName
-
getSingleBeanWithAnnotation
public static <T> T getSingleBeanWithAnnotation(org.springframework.context.ApplicationContext applicationContext, Class<? extends Annotation> annotationType) -
getBeansOfTypeWithAnnotation
public static <T> Collection<T> getBeansOfTypeWithAnnotation(org.springframework.context.ConfigurableApplicationContext applicationContext, Class<? extends T> beanType, Class<? extends Annotation> annotationType)
-