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

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

    youdao

  • 无疑地正如本文所展示缓存可以改变定位返回结果因此就改变应用程序行为

    Clearly, as this article shows, caching can change the results from the locator and thus the behavior of the application.

    youdao

  • 组件使用重载资源也就是说,一个名称绑定两个不同资源缓存服务定位个组件返回相同的资源。

    When two components use a resource name that is overloaded — that is, a name that is bound to two different resources — a caching service locator returns the same resource to both components.

    youdao

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

    My third implementation used a service locator with no cache.

    youdao

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

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

    youdao

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

    But the service locator should not include a resource cache.

    youdao

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

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

    youdao

  • 我们已经看到重载资源典型服务定位实现资源缓存集合,但他们之间并没有好的合作

    We have seen that an overloaded resource name and the typical service locator implementation, a singleton with a resource cache, do not get along.

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

  • 缓存引用服务定位导致J2EE 1.3(以及以后版本)中重载资源应用程序工作不正常

    A service locator that caches references will cause a J2EE 1.3 (and later) application with an overloaded resource name to work incorrectly.

    youdao

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

    My second implementation used a caching service locator.

    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

  • 不是改变定位行为结果必须相同没有缓存

    It's not supposed to change the behavior of the locator; the results must be the same with or without caching.

    youdao

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

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

    youdao

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

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

    youdao

  • ServiceLocator模式封装使用JNDI代码仍然有用即使定位使用缓存

    The Service Locator pattern is still useful for encapsulating the code that uses JNDI, even if the locator does not use caching.

    youdao

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

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

    youdao

  • 带有资源缓存集合服务定位创建全局缓存,通过这种方式不能重载的资源名正确处理组件映射

    A singleton service locator with a resource cache creates a global cache that cannot properly handle the component-level mappings for an overloaded resource name.

    youdao

  • 组件可以通过根本不使用服务定位避免重载缓存名称问题但是这种方法又有点杀一千的感觉。

    Components could avoid the problem of overloaded names being cached by not using service locators at all, but that would be overkill.

    youdao

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

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

    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 service locator's code looks up the resource both times because the first lookup is not cached. Here is the output

    youdao

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

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

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