protected BeanDefinition componentParser(Class<?> c) { AnnotationBeanDefinition annotationBeanDefinition = new AnnotatedBeanDefinition(); annotationBeanDefinition.setClassName(c.getName()); annotationBeanDefinition.setId(c.getAnnotation(Component.class).value()); annotationBeanDefinition.setInterfaceNames(ReflectUtils.getInterfaceNames(c)); annotationBeanDefinition.setInjectFields(getInjectFields(c)); annotationBeanDefinition.setInjectMethods(getInjectMethods(c)); annotationBeanDefinition.setConstructor(getInjectConstructor(c)); annotationBeanDefinition.setInitMethod(getInitMethod(c)); annotationBeanDefinition.setDestroyedMethod(getDestroyedMethod(c)); return annotationBeanDefinition; }
String[] names = ReflectUtils.getInterfaceNames(clazz); xmlBeanDefinition.setInterfaceNames(names); log.debug("XML bean node parsing, class name [{}], interface size [{}]", className, names.length);
protected BeanDefinition componentParser(Class<?> c) { AnnotationBeanDefinition annotationBeanDefinition = new AnnotatedBeanDefinition(); annotationBeanDefinition.setClassName(c.getName()); annotationBeanDefinition.setId(c.getAnnotation(Component.class).value()); annotationBeanDefinition.setInterfaceNames(ReflectUtils.getInterfaceNames(c)); annotationBeanDefinition.setInjectFields(getInjectFields(c)); annotationBeanDefinition.setInjectMethods(getInjectMethods(c)); annotationBeanDefinition.setConstructor(getInjectConstructor(c)); annotationBeanDefinition.setInitMethod(getInitMethod(c)); annotationBeanDefinition.setDestroyedMethod(getDestroyedMethod(c)); return annotationBeanDefinition; }
String[] names = ReflectUtils.getInterfaceNames(clazz); xmlBeanDefinition.setInterfaceNames(names); log.debug("XML bean node parsing, class name [{}], interface size [{}]", className, names.length);