0 votes
35 views
in Education by (51.6k points)

What are the entities of Service Locator pattern?

1 Answer

0 votes
by (51.6k points)

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.

Related questions

0 votes
1 answer 36 views
0 votes
1 answer 32 views
0 votes
1 answer 70 views
0 votes
1 answer 66 views
0 votes
1 answer 16 views
0 votes
1 answer 19 views
0 votes
1 answer 35 views
0 votes
1 answer 44 views
0 votes
1 answer 24 views
0 votes
1 answer 18 views
0 votes
1 answer 18 views
0 votes
1 answer 31 views
0 votes
1 answer 23 views
asked Dec 9, 2020 in Technology by JackTerrance (230k points)
0 votes
1 answer 12 views
...