0
What are the entities of Service Locator pattern?

Open 1 Answers 40 Views Education

What are the entities of Service Locator pattern?

1 Answer

0

What are the entities of Service Locator pattern?

Following are the entities of this type of design pattern.

Service - Actual Service which will process the request. Reference of such service is to be looked upon in JNDI server.

Context / Initial Context - JNDI Context carries the reference to service used for lookup purpose.

Service Locator - Service Locator is a single point of contact to get services by JNDI lookup caching the services.

Cache - Cache to store references of services to reuse them.

Client - Client is the object that invokes the services via ServiceLocator.

by (54.6k points)
...