1.

What Are The Entities Of Service Locator Pattern?

Answer»

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.

Following are the entities of this type of design pattern.



Discussion

No Comment Found