Skip to content

Commit 85ba6e3

Browse files
committed
Update README.md
1 parent 112c719 commit 85ba6e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,10 @@
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/iluwatar/java-design-patterns/blob/master/service-locator/etc/service-locator.png "Proxy")
181+
![alt text](https://github.com/MSaifAsif/java-design-patterns/blob/master/service-locator/etc/service-locator.png "Proxy")
182182

183183
**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.
184184

185-
186185
**Typical Use Case:**
187186

188187
* When network hits are expesive and time consuming

0 commit comments

Comments
 (0)