Skip to content

Commit 6318d76

Browse files
committed
Update README.md
Code review compliance
1 parent 85ba6e3 commit 6318d76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,13 @@
178178
## <a name="service-locator">Service Locator</a> [&#8593;](#list-of-design-patterns)
179179
**Intent:** Encapsulate the processes involved in obtaining a service with a strong abstraction layer.
180180

181-
![alt text](https://github.com/MSaifAsif/java-design-patterns/blob/master/service-locator/etc/service-locator.png "Proxy")
181+
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/service-locator/etc/service-locator.png "Proxy")
182182

183-
**Applicability:** The service locator pattern is applicable whenever we want to locate/fetch various services using JNDI which, typically, is a redundant and expensive lookup. The service Locator pattern addresses this expensicve lookup by making use of caching techniques ie. for the very first time a particular service is requested, the service Locator looks up in JNDI, fetched the relavant service and then finally caches this service object. Now, further lookups of the same service via Service Locator is done in its cache which improves the performance of application to great extent.
183+
**Applicability:** The service locator pattern is applicable whenever we want to locate/fetch various services using JNDI which, typically, is a redundant and expensive lookup. The service Locator pattern addresses this expensive lookup by making use of caching techniques ie. for the very first time a particular service is requested, the service Locator looks up in JNDI, fetched the relavant service and then finally caches this service object. Now, further lookups of the same service via Service Locator is done in its cache which improves the performance of application to great extent.
184184

185185
**Typical Use Case:**
186186

187-
* When network hits are expesive and time consuming
187+
* When network hits are expensive and time consuming
188188
* lookups of services are done quite frequently
189189
* large number of services are being used
190190

0 commit comments

Comments
 (0)