From 74e32259bef4aae0b856552d8b6944f7e91a333e Mon Sep 17 00:00:00 2001 From: Ilkka Seppala Date: Sun, 4 Oct 2015 00:16:05 +0300 Subject: [PATCH] Improve Service Locator Javadoc --- .../src/main/java/com/iluwatar/servicelocator/App.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/service-locator/src/main/java/com/iluwatar/servicelocator/App.java b/service-locator/src/main/java/com/iluwatar/servicelocator/App.java index f86e1cc32..5b6615495 100644 --- a/service-locator/src/main/java/com/iluwatar/servicelocator/App.java +++ b/service-locator/src/main/java/com/iluwatar/servicelocator/App.java @@ -1,9 +1,15 @@ package com.iluwatar.servicelocator; /** - * Service locator pattern, used to lookup JNDI-services + * + * The Service Locator pattern is a design pattern used in software development + * to encapsulate the processes involved in obtaining a service with a strong + * abstraction layer. This pattern uses a central registry known as the "service + * locator", which on request returns the information necessary to perform a certain task. + *

+ * In this example we use the Service locator pattern to lookup JNDI-services * and cache them for subsequent requests. - * + *

* @author saifasif * */