X Tutup
Skip to content

Commit a0283d6

Browse files
committed
iluwatar#107 Business Delegate JavaDoc improvements
1 parent 81dda94 commit a0283d6

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

business-delegate/src/main/java/com/iluwatar/business/delegate/App.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,25 @@
22

33
/**
44
*
5-
* The Business Delegate pattern adds an abstraction layer between presentation and business tiers.
5+
* The Business Delegate pattern adds an abstraction layer between the presentation and business tiers.
66
* By using the pattern we gain loose coupling between the tiers. The Business Delegate encapsulates
77
* knowledge about how to locate, connect to, and interact with the business objects that make up
88
* the application.
9-
*
9+
* <p>
1010
* Some of the services the Business Delegate uses are instantiated directly, and some can be retrieved
1111
* through service lookups. The Business Delegate itself may contain business logic too potentially tying
1212
* together multiple service calls, exception handling, retrying etc.
13-
*
14-
* In this example the client (Client) utilizes a business delegate (BusinessDelegate) to execute a task.
13+
* <p>
14+
* In this example the client ({@link Client}) utilizes a business delegate ({@link BusinessDelegate}) to execute a task.
1515
* The Business Delegate then selects the appropriate service and makes the service call.
1616
*
1717
*/
1818
public class App {
1919

20+
/**
21+
* Program entry point
22+
* @param args command line args
23+
*/
2024
public static void main(String[] args) {
2125

2226
BusinessDelegate businessDelegate = new BusinessDelegate();

business-delegate/src/main/java/com/iluwatar/business/delegate/BusinessDelegate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
*
5-
* BusinessDelegate separates presentation and business tiers
5+
* BusinessDelegate separates the presentation and business tiers
66
*
77
*/
88
public class BusinessDelegate {

business-delegate/src/test/java/com/iluwatar/business/delegate/AppTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
import com.iluwatar.business.delegate.App;
66

7+
/**
8+
*
9+
* Application test
10+
*
11+
*/
712
public class AppTest {
813

914
@Test

0 commit comments

Comments
 (0)
X Tutup