Fixed package name and some spelling mistakes.

This commit is contained in:
Ilkka Seppala
2014-12-06 13:59:41 +02:00
parent 3ef1613fa6
commit c312fce43b
6 changed files with 9 additions and 9 deletions
@@ -0,0 +1,20 @@
package com.iluwatar;
/**
* Service locator pattern, used to lookup jndi services
* and cache them for subsequent requests.
* @author saifasif
*
*/
public class App {
public static void main(String[] args) {
Service service = ServiceLocator.getService("jndi/serviceA");
service.execute();
service = ServiceLocator.getService("jndi/serviceB");
service.execute();
service = ServiceLocator.getService("jndi/serviceA");
service.execute();
service = ServiceLocator.getService("jndi/serviceA");
service.execute();
}
}