青年中文青年中文

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.