Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShardingRule和TableRule调整为Builder模式 #76

Closed
terrymanu opened this issue May 20, 2016 · 0 comments
Closed

ShardingRule和TableRule调整为Builder模式 #76

terrymanu opened this issue May 20, 2016 · 0 comments

Comments

@terrymanu
Copy link
Member

由于需求增加,ShardingRule和TableRule的构造器成指数级别增长。为了一劳永逸的解决此问题,我们将ShardingRule和TableRule调整为Builder模式。

此调整会对现有使用java api开发和使用spring但未使用命名空间的程序有影响,对使用Spring命名空间以及yaml的程序无影响。

非spring命名空间的配置方式,需要构造器,未来我们将不支持非spring命名空间的配置方式。目前的public全属性构造器,将于未来修改为private,以后都讲通过builder构建对象。

@terrymanu terrymanu changed the title [Refactor] ShardingRule和TableRule调整为Builder模式 ShardingRule和TableRule调整为Builder模式 Jul 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant