protected void register(BeanDefinitionRegistry registry) {
List<String> modules = bindRegistry.getBeanNames(BindModule.class);
for (String name : modules) {
Class<?> beanClass = bindRegistry.getBeanType(name);
BeanConfig config = null;
try {
config = ((BindModule) beanClass.newInstance()).getConfig();
} catch (Exception e) {
logger.error("class initialization error of " + beanClass, e);
continue;
}
List<BeanConfig.Definition> definitions = config.getDefinitions();
for (BeanConfig.Definition definition : definitions) {
String beanName = definition.beanName;
if (bindRegistry.contains(beanName)) {
logger.warn("Ingore exists bean definition {}", beanName);
} else {