service locator信息详情

service locator发音

意思翻译

服务定位器

相似词语短语

locator───n.定位器,探测器

locator beacons───定位器信标

meetinghouse locator───会议室定位器

service───n.服务,服侍;服役;仪式;vt.维修,检修;保养;n.(Service)人名;(英)瑟维斯;adj.服务性的;耐用的;服现役的

sketcher stores locator───sketcher存储定位器

self service───开架销售

second service───第二次发球

fine service───优质服务

friendliest service───最友好的服务

双语使用场景

Unique service locator instance per component type.───每个组件类型一个唯一的服务定位器实例。

But the service locator should not include a resource cache.───但是服务定位器不应包含资源缓存。

My second implementation used a caching service locator.───我第二个实现使用了缓存服务定位器。

The remaining alternative is to use a service locator, make it a singleton, but remove the reference cache.───剩下的一个选择是使用服务定位器使用集合的方式,但是要去除引用缓存。

Since the service locator is basically stateless, multiple components sharing the same instance is not a problem.───由于服务定位器基本上是无状态的,所以多个组件共享相同实例是没有问题的。

The Service Locator pattern is still useful for encapsulating the code that uses JNDI, even if the locator does not use caching.───ServiceLocator模式对封装使用JNDI的代码仍然有用,即使定位器不使用缓存。

If the service locator class is part of a utility JAR shared by multiple applications, those applications will share the same instance.───如果服务定位器类是JAR通用性的一部分并被多个应用程序共享,这些应用程序将共享相同的实例。

We will briefly review how JNDI works here, primarily to understand the parts that affect the Service Locator pattern.───我们将主要回顾JNDI是如何工作的,首先要弄清楚影响ServiceLocator模式的部分。

Business logic code that uses a service locator avoids becoming cluttered with directory lookup code, and so is easier to understand.───业务逻辑代码使用服务定位器避免目录查找代码变得混乱,因此它很容易理解。

英语使用场景

The client passes in a unique identifier -- a resource name -- for the resource; the service locator finds the resource and returns it to the client.

The intellectual decision business flow and management component to combine XML technology, has realized the function of the service locator and business procedure controlling.

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

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.

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.