#107 Service Locator JavaDoc

This commit is contained in:
Ilkka Seppala 2015-08-21 22:59:59 +03:00
parent 488e5dd281
commit 743b6e69c5
3 changed files with 27 additions and 15 deletions

View File

@ -1,12 +1,18 @@
package com.iluwatar.servicelocator;
/**
* Service locator pattern, used to lookup jndi services
* Service locator pattern, used to lookup JNDI-services
* and cache them for subsequent requests.
*
* @author saifasif
*
*/
public class App {
/**
* Program entry point
* @param args command line args
*/
public static void main(String[] args) {
Service service = ServiceLocator.getService("jndi/serviceA");
service.execute();

View File

@ -6,6 +6,7 @@ package com.iluwatar.servicelocator;
* <li>service name</li>
* <li>unique id</li>
* <li>execution work flow</li>
*
* @author saifasif
*
*/

View File

@ -1,14 +1,19 @@
package com.iluwatar.servicelocator;
import org.junit.Test;
import com.iluwatar.servicelocator.App;
public class AppTest {
@Test
public void test() {
String[] args = {};
App.main(args);
}
}
package com.iluwatar.servicelocator;
import org.junit.Test;
import com.iluwatar.servicelocator.App;
/**
*
* Application test
*
*/
public class AppTest {
@Test
public void test() {
String[] args = {};
App.main(args);
}
}