test_class.declarator: registry = null
test_class.modifier: private
test_class.original_string: private DefaultListableBeanFactory registry = null;
test_class.type: DefaultListableBeanFactory
test_class.var_name: registry
test_class.file: dubbo-config/dubbo-config-spring/src/test/java/com/alibaba/dubbo/config/spring/util/AnnotatedBeanDefinitionRegistryUtilsTest.java
test_class.identifier: AnnotatedBeanDefinitionRegistryUtilsTest
test_case.body: @Test
      public void testRegisterBeans() {
  
          AnnotatedBeanDefinitionRegistryUtils.registerBeans(registry, this.getClass());
  
          String[] beanNames = registry.getBeanNamesForType(this.getClass());
  
          Assert.assertEquals(1, beanNames.length);
  
          beanNames = registry.getBeanNamesForType(AnnotatedBeanDefinitionRegistryUtils.class);
  
          Assert.assertTrue(ObjectUtils.isEmpty(beanNames));
  
          AnnotatedBeanDefinitionRegistryUtils.registerBeans(registry);
  
      }
test_case.class_method_signature: AnnotatedBeanDefinitionRegistryUtilsTest.testRegisterBeans()
test_case.full_signature: @Test public void testRegisterBeans()
test_case.identifier: testRegisterBeans
test_case.invocations: registerBeans getClass getBeanNamesForType getClass assertEquals getBeanNamesForType assertTrue isEmpty registerBeans
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRegisterBeans()
focal_class.declarator: logger = LogFactory.getLog(AnnotatedBeanDefinitionRegistryUtils.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Log logger = LogFactory.getLog(AnnotatedBeanDefinitionRegistryUtils.class);
focal_class.type: Log
focal_class.var_name: logger
focal_class.file: dubbo-config/dubbo-config-spring/src/main/java/com/alibaba/dubbo/config/spring/util/AnnotatedBeanDefinitionRegistryUtils.java
focal_class.identifier: AnnotatedBeanDefinitionRegistryUtils
focal_class.class_method_signature: AnnotatedBeanDefinitionRegistryUtils.registerBeans(BeanDefinitionRegistry registry, Class<?>... annotatedClasses)
focal_class.full_signature: public static void registerBeans(BeanDefinitionRegistry registry, Class<?>... annotatedClasses)
focal_class.identifier: registerBeans
focal_class.modifiers: public static
focal_class.parameters: (BeanDefinitionRegistry registry, Class<?>... annotatedClasses)
focal_class.return: void
focal_class.signature: void registerBeans(BeanDefinitionRegistry registry, Class<?>... annotatedClasses)
focal_method.body: public static void registerBeans(BeanDefinitionRegistry registry, Class<?>... annotatedClasses) {
  
          if (ObjectUtils.isEmpty(annotatedClasses)) {
              return;
          }
  
          boolean debugEnabled = logger.isDebugEnabled();
  
          AnnotatedBeanDefinitionReader reader = new AnnotatedBeanDefinitionReader(registry);
  
          if (debugEnabled) {
              logger.debug(registry.getClass().getSimpleName() + " will register annotated classes : " + Arrays.asList(annotatedClasses) + " .");
          }
  
          reader.register(annotatedClasses);
  
      }
focal_method.class_method_signature: AnnotatedBeanDefinitionRegistryUtils.registerBeans(BeanDefinitionRegistry registry, Class<?>... annotatedClasses)
focal_method.full_signature: public static void registerBeans(BeanDefinitionRegistry registry, Class<?>... annotatedClasses)
focal_method.identifier: registerBeans
focal_method.invocations: isEmpty isDebugEnabled debug getSimpleName getClass asList register
focal_method.modifiers: public static
focal_method.parameters: (BeanDefinitionRegistry registry, Class<?>... annotatedClasses)
focal_method.return: void
focal_method.signature: void registerBeans(BeanDefinitionRegistry registry, Class<?>... annotatedClasses)