Package org.beangle.spring.config

Examples of org.beangle.spring.config.BeanConfig


  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 {
View Full Code Here

TOP

Related Classes of org.beangle.spring.config.BeanConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.