Package cn.com.byd.factory.impl

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


    if (transactionFactory != null) {
      return;
    }
    // 如果传入的工厂为空将采用默认的工厂模式
    if (StringUtil.isEmptyAndNull(factoryName)) {
      transactionFactory = new DefaultTransactionFactory();
      return;
    }
    transactionFactory = (TransactionFactory)RefObjectUtil.loadClass(factoryName);
  }
View Full Code Here


  /**
   *获取指定全局事务工厂的实现类
   * @return
   */
  public static TransactionFactory getTransactionFactory() {
    return transactionFactory == null ? new DefaultTransactionFactory() : transactionFactory;
  }
View Full Code Here

TOP

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

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.