All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.weicoder.seata.proxy.SeataProxy Maven / Gradle / Ivy

There is a newer version: 3.6.2
Show newest version
package com.weicoder.seata.proxy;

import javax.sql.DataSource;

import com.weicoder.datasource.base.BaseDataSource;
import com.weicoder.seata.druid.Druid;

import io.seata.rm.datasource.DataSourceProxy;

/**
 * Seata分布式连接数代理
 * 
 * @author wdcode
 *
 */
public class SeataProxy extends BaseDataSource {

	public SeataProxy(String name) {
		super(name);
	}

	@Override
	public DataSource init(String name) {
		return new DataSourceProxy(new Druid(name).getDataSource());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy