throw new BeanDefinitionStoreException("Cannot use AutoBean of interface type " + m.getReturnType()
+ ": don't know what class to instantiate; processing @AutoBean method " + m);
}
RootBeanDefinition bd = new RootBeanDefinition(m.getReturnType());
bd.setAutowireMode(autoBean.autowire().value());
configurationProcessor.registerBeanDefinition(m.getName(), bd, !Modifier.isPublic(m.getModifiers()));
// one bean definition created
configurationProcessor.beanDefsGenerated++;
}