但是服务定位器不应包含资源缓存。
But the service locator should not include a resource cache.
我第二个实现使用了缓存服务定位器。
图2显示了虚拟客户团队定位器体系架构。
Figure 2 shows the Virtual Client Team Locator architecture.
我的第三个实现使用没有缓存的服务定位器。
My third implementation used a service locator with no cache.
包含访问数据源缓存的服务定位器实现如下。
A service locator implementation that includes caching accesses a data source like this.
要解决由服务定位器导致的问题的难度有多大呢?
How hard will it be to figure out that the service locator is causing the problem?
重载资源名使得服务定位器与其缓存之间变得混乱。
So overloaded resource names mess up a service locator and its cache.
万一这段测试代码里面有几十上百个定位器怎么办?
What if there are tens or hundreds of locators in the test code?
Location小部件通过定位器服务提取位置。
The location widget extracted the location through the Locator Service.
URI可以进一步分为定位器、名称,或者二者兼具。
A URI can be further classified as a locator, a name, or both.
好,既然是由于缓存服务定位器导致重载资源名时的错误。
OK, so a caching service locator causes errors for overloaded resource names.
为了安全,你需要用一种机制来锁定服务定位器并使之只读。
To make this safe, you need to have a mechanism to lock the service locator and make it read only.
并不是要改变定位器的行为,结果必须是相同的或没有缓存。
It's not supposed to change the behavior of the locator; the results must be the same with or without caching.
定位器由UImodule自动生成,并改善了测试速度。
The locators are automatically generated from the UI module, improving the test speed.
这个单值是转换表的定位器,存储过程用它来访问转换表的列。
This single value is a locator to the transition table, which the procedure USES to access the transition table columns.
如果属性改变了,新的运行时定位器也会由框架自动重新生成。
If the attributes are changed, new runtime locators are generated by the framework.
例如,允许客户端访问数据源的服务定位器代码表面上与此相似。
For example, the service locator code that enables a client to access a data source looks like this.
由于缓存服务定位器的原因,两个bean现在使用相同数据源。
Because of the caching service locator, the two beans are now using the same data source.
服务定位器代码两次查找资源,因为第一次查找没有被缓存起来。
The service locator's code looks up the resource both times because the first lookup is not cached. Here is the output
子资源定位器是能进一步解析用来处理给定请求的资源的一些方法。
Subresource locators are methods that further resolve the resource that should handle a given request.
当HTML代码具有良好的样式时,可以高效地利用CSS定位器。
CSS locator is efficiently utilized when HTML codes have good style.
而通过律师定位器网站寻找律师的公司将会交一部分转介费。
As with LawyerLocator, firms who get work through the site will pay a referral fee.
服务定位器实现通常包括资源缓存,以此来避免对相同资源的重复查找。
Service locator implementations usually include a resource cache to avoid repeated lookups of the same resource.
另外一个方法是每个组件类型使用它自身的服务定位器实例,而不是集合。
Another way is for each component type to use its own instance of service locator, not a singleton.
这是因为服务定位器将缓存不论哪个组件首次使用时所重载的名称的资源。
This is because the service locator will cache the resource for whichever component USES the overloaded name first.
然后,DB2打开从过程中返回的游标,并处理分配给结果集的定位器。
Then DB2 opens the cursor returns from the procedure and processes the locator allocation to the result set.
我们为Cairngorm提供了一个可配置在IoC容器中的服务定位器。
For Cairngorm, we offer a service locator that can be configured in the IoC container.
业务逻辑代码使用服务定位器避免目录查找代码变得混乱,因此它很容易理解。
Business logic code that USES a service locator avoids becoming cluttered with directory lookup code, and so is easier to understand.
将其应用于现有应用程序很简单:只要改变服务定位器实现去禁止或去除缓存。
This is simple to apply to an existing application: just change the service locator implementation to disable or remove the cache.
将其应用于现有应用程序很简单:只要改变服务定位器实现去禁止或去除缓存。
This is simple to apply to an existing application: just change the service locator implementation to disable or remove the cache.
应用推荐