File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed
main/java/com/iluwatar/business/delegate
test/java/com/iluwatar/business/delegate Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 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 */
1818public 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 ();
Original file line number Diff line number Diff line change 22
33/**
44 *
5- * BusinessDelegate separates presentation and business tiers
5+ * BusinessDelegate separates the presentation and business tiers
66 *
77 */
88public class BusinessDelegate {
Original file line number Diff line number Diff line change 44
55import com .iluwatar .business .delegate .App ;
66
7+ /**
8+ *
9+ * Application test
10+ *
11+ */
712public class AppTest {
813
914 @ Test
You can’t perform that action at this time.
0 commit comments