use of com.alibaba.rsocket.spring.SpringRSocketService in project alibaba-rsocket-broker by alibaba.
the class RSocketServiceAnnotationProcessor method scanRSocketServiceAnnotation.
protected void scanRSocketServiceAnnotation(Object bean, String beanName) {
Class<?> managedBeanClass = bean.getClass();
RSocketService reactiveService = AnnotationUtils.findAnnotation(managedBeanClass, RSocketService.class);
if (reactiveService != null) {
registerRSocketService(reactiveService, bean);
}
SpringRSocketService springRSocketService = AnnotationUtils.findAnnotation(managedBeanClass, SpringRSocketService.class);
if (springRSocketService != null) {
registerRSocketService(springRSocketService, bean);
}
}
Aggregations