X Tutup
Skip to content

Commit 0364b49

Browse files
committed
iluwatar#107 Event Aggregator example JavaDoc
1 parent f2db01e commit 0364b49

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

event-aggregator/src/main/java/com/iluwatar/event/aggregator/App.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@
77
*
88
* The Event Aggregator pattern channels events from multiple objects
99
* into a single object to simplify registration for clients.
10-
*
11-
* In the example LordBaelish, LordVarys and Scout deliver events to
12-
* KingsHand. KingsHand, the event aggregator, then delivers the events
13-
* to KingJoffrey.
10+
* <p>
11+
* In the example {@link LordBaelish}, {@link LordVarys} and {@link Scout} deliver events to
12+
* {@link KingsHand}. {@link KingsHand}, the event aggregator, then delivers the events
13+
* to {@link KingJoffrey}.
1414
*
1515
*/
1616
public class App {
1717

18+
/**
19+
* Program entry point
20+
* @param args command line args
21+
*/
1822
public static void main(String[] args) {
1923

2024
KingJoffrey kingJoffrey = new KingJoffrey();

event-aggregator/src/main/java/com/iluwatar/event/aggregator/KingJoffrey.java

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

33
/**
44
*
5-
* KingJoffrey observes events from KingsHand.
5+
* KingJoffrey observes events from {@link KingsHand}.
66
*
77
*/
88
public class KingJoffrey implements EventObserver {

event-aggregator/src/main/java/com/iluwatar/event/aggregator/Weekday.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package com.iluwatar.event.aggregator;
22

3+
/**
4+
*
5+
* Weekday enumeration
6+
*
7+
*/
38
public enum Weekday {
49

510
MONDAY("Monday"), TUESDAY("Tuesday"), WEDNESDAY("Wednesday"), THURSDAY("Thursday"), FRIDAY("Friday"), SATURDAY("Saturday"), SUNDAY("Sunday");

event-aggregator/src/test/java/com/iluwatar/event/aggregator/AppTest.java

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

44
import com.iluwatar.event.aggregator.App;
55

6+
/**
7+
*
8+
* Application test
9+
*
10+
*/
611
public class AppTest {
712

813
@Test

0 commit comments

Comments
 (0)
X Tutup