• 但是服务定位器包含资源缓存

    But the service locator should not include a resource cache.

    youdao

  • 第二个实现使用缓存服务定位器

    My second implementation used a caching service locator.

    youdao

  • 使用服务定位器设计模式简化代码

    Use of the service locator design pattern to simplify lookup code.

    youdao

  • 每个组件类型一个唯一的服务定位器实例

    Unique service locator instance per component type.

    youdao

  • 第三个实现使用没有缓存服务定位器

    My third implementation used a service locator with no cache.

    youdao

  • 包含访问数据源缓存服务定位器实现如下。

    A service locator implementation that includes caching accesses a data source like this.

    youdao

  • 本文假定服务定位器模式知识

    This article assumes knowledge of the Service Locator pattern.

    youdao

  • 服务定位放进来仅仅开始

    Putting in your service locater is the just the start.

    youdao

  • 解决服务定位导致问题的难度有多大呢?

    How hard will it be to figure out that the service locator is causing the problem?

    youdao

  • 重载资源使得服务定位与其缓存之间变得混乱

    So overloaded resource names mess up a service locator and its cache.

    youdao

  • 既然由于缓存服务定位器导致重载资源时的错误

    OK, so a caching service locator causes errors for overloaded resource names.

    youdao

  • 为了安全需要一种机制锁定服务定位器使之只读

    To make this safe, you need to have a mechanism to lock the service locator and make it read only.

    youdao

  • 声明居于服务定位服务后,打算调用它们

    After declaring services to reside on the service Locator you will want to invoke them.

    youdao

  • 例如允许客户访问数据源服务定位器代码表面上与相似。

    For example, the service locator code that enables a client to access a data source looks like this.

    youdao

  • 由于缓存服务定位原因,两个bean现在使用相同数据源

    Because of the caching service locator, the two beans are now using the same data source.

    youdao

  • 服务定位代码查找资源因为第一查找没有被缓存起来

    The service locator's code looks up the resource both times because the first lookup is not cached. Here is the output

    youdao

  • 简单结论使用服务定位进行缓存不是一个好的主意

    The simple conclusion is that service locators that cache are a bad idea.

    youdao

  • 服务定位器实现通常包括资源缓存,以此避免相同资源重复查找

    Service locator implementations usually include a resource cache to avoid repeated lookups of the same resource.

    youdao

  • 另外一个方法每个组件类型使用自身服务定位器实例而不是集合

    Another way is for each component type to use its own instance of service locator, not a singleton.

    youdao

  • 是因为服务定位器缓存不论哪个组件首次使用所重载的名称资源

    This is because the service locator will cache the resource for whichever component USES the overloaded name first.

    youdao

  • 象反,服务定位假设结果错误句柄属于调用服务

    Instead the service Locator assumes that the result handler and the fault handler will belong to the class calling the service.

    youdao

  • 我们Cairngorm提供了一个配置IoC中的服务定位器

    For Cairngorm, we offer a service locator that can be configured in the IoC container.

    youdao

  • 业务逻辑代码使用服务定位器避免目录查找代码变得混乱因此容易理解

    Business logic code that USES a service locator avoids becoming cluttered with directory lookup code, and so is easier to understand.

    youdao

  • 其应用于现有应用程序简单只要改变服务定位器实现禁止去除缓存

    This is simple to apply to an existing application: just change the service locator implementation to disable or remove the cache.

    youdao

  • 第一个实现没有使用服务定位器bean本身执行所有JNDI代码

    My first implementation used no service locator; the beans performed all of the JNDI code themselves. Here are the two toString 's I got.

    youdao

  • 因此J2EE 1.3应用程序中,服务定位器实现应该包含资源缓存

    Therefore, J2EE 1.3 applications should not include the resource cache in their service locator implementations.

    youdao

  • 不要假设缓存服务定位器能显著提高应用程序性能要使用性能测试证明一点

    Do not just assume that a caching service locator significantly improves application performance; use performance testing to confirm that it does.

    youdao

  • 凡是遗留代码集中出现单件查找地方,稍加修改即可换服务定位器查找同样的组件

    Wherever there are singleton lookup in the legacy codebase, a small change is made to lookup the same component via the service locator instead.

    youdao

  • 客户资源传递一个唯一的标识符(资源),服务定位器找到这个资源返回客户端。

    The client passes in a unique identifier — a resource namefor the resource; the service locator finds the resource and returns it to the client.

    youdao

  • 包含缓存服务定位应用程序迟早问题,而且这个问题将很难检测、很难再现且很难诊断。

    Applications that contain a caching service locator are a problem waiting to happen — a problem that will be difficult to detect, difficult to reproduce reliably, and difficult to diagnose.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定