例如,允许客户端访问数据源的服务定位器代码表面上与此相似。
For example, the service locator code that enables a client to access a data source looks like this.
包含访问数据源缓存的服务定位器实现如下。
A service locator implementation that includes caching accesses a data source like this.
由于缓存服务定位器的原因,两个bean现在使用相同数据源。
Because of the caching service locator, the two beans are now using the same data source.
由于缓存服务定位器的原因,两个bean现在使用相同数据源。
Because of the caching service locator, the two beans are now using the same data source.
应用推荐