}
@Override
public void otherMethod(ConfigurationProcessor configurationProcessor, String configurerBeanName,
Class<?> configurerClass, Method m) {
AutoBean autoBean = AnnotationUtils.findAnnotation(m, AutoBean.class);
if (autoBean != null) {
// Create a bean definition for this class
if (m.getReturnType().isInterface()) {
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++;
}