我选择将这个dao封装在一个接口中,这样我就能够切换数据访问层来使用不同的持久性策略。
I choose to wrap the DAO in an interface, so I can switch my data access layer to use different persistence strategies.
下一版本应该把重点放在服务接口,而不是数据访问和业务逻辑层。
The next version should focus less on the data access and business logic tiers and more on the service interface.
这个类是服务注册中心Repository类的一个具体实现,它为数据访问层提供了基础的接口。
This is a specific implementation of the Repository class for Service Registry, which provides the primary interface to the data access layer.
应用推荐