Package cn.com.byd.factory.impl

Examples of cn.com.byd.factory.impl.DefaultBeanFactory


    if (beanFactory != null) {
      return;
    }
    // 如果传入的工厂为空将采用默认的工厂模式
    if (StringUtil.isEmptyAndNull(factoryName)) {
      beanFactory = new DefaultBeanFactory();
      return;
    }

    beanFactory = (BeanFactory)RefObjectUtil.loadClass(factoryName);
  }
View Full Code Here


  /**
   *获取指定全局bean工厂的实现类
   * @return
   */
  public static BeanFactory getBeanFactory() {
    return beanFactory == null ? new DefaultBeanFactory() : beanFactory;
  }
View Full Code Here

TOP

Related Classes of cn.com.byd.factory.impl.DefaultBeanFactory

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.