Skip to content

Commit 743b6e6

Browse files
committed
iluwatar#107 Service Locator JavaDoc
1 parent 488e5dd commit 743b6e6

File tree

3 files changed

+27
-15
lines changed

3 files changed

+27
-15
lines changed

service-locator/src/main/java/com/iluwatar/servicelocator/App.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
package com.iluwatar.servicelocator;
22

33
/**
4-
* Service locator pattern, used to lookup jndi services
4+
* Service locator pattern, used to lookup JNDI-services
55
* and cache them for subsequent requests.
66
*
77
* @author saifasif
8+
*
89
*/
910
public class App {
11+
12+
/**
13+
* Program entry point
14+
* @param args command line args
15+
*/
1016
public static void main(String[] args) {
1117
Service service = ServiceLocator.getService("jndi/serviceA");
1218
service.execute();

service-locator/src/main/java/com/iluwatar/servicelocator/Service.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* <li>service name</li>
77
* <li>unique id</li>
88
* <li>execution work flow</li>
9+
*
910
* @author saifasif
1011
*
1112
*/
Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
package com.iluwatar.servicelocator;
2-
3-
import org.junit.Test;
4-
5-
import com.iluwatar.servicelocator.App;
6-
7-
public class AppTest {
8-
9-
@Test
10-
public void test() {
11-
String[] args = {};
12-
App.main(args);
13-
}
14-
}
1+
package com.iluwatar.servicelocator;
2+
3+
import org.junit.Test;
4+
5+
import com.iluwatar.servicelocator.App;
6+
7+
/**
8+
*
9+
* Application test
10+
*
11+
*/
12+
public class AppTest {
13+
14+
@Test
15+
public void test() {
16+
String[] args = {};
17+
App.main(args);
18+
}
19+
}

0 commit comments

Comments
 (0)