#107 Event Aggregator example JavaDoc

This commit is contained in:
Ilkka Seppala 2015-08-18 22:37:04 +03:00
parent f2db01e546
commit 0364b49870
4 changed files with 19 additions and 5 deletions

View File

@ -7,14 +7,18 @@ import java.util.List;
*
* The Event Aggregator pattern channels events from multiple objects
* into a single object to simplify registration for clients.
*
* In the example LordBaelish, LordVarys and Scout deliver events to
* KingsHand. KingsHand, the event aggregator, then delivers the events
* to KingJoffrey.
* <p>
* In the example {@link LordBaelish}, {@link LordVarys} and {@link Scout} deliver events to
* {@link KingsHand}. {@link KingsHand}, the event aggregator, then delivers the events
* to {@link KingJoffrey}.
*
*/
public class App {
/**
* Program entry point
* @param args command line args
*/
public static void main(String[] args) {
KingJoffrey kingJoffrey = new KingJoffrey();

View File

@ -2,7 +2,7 @@ package com.iluwatar.event.aggregator;
/**
*
* KingJoffrey observes events from KingsHand.
* KingJoffrey observes events from {@link KingsHand}.
*
*/
public class KingJoffrey implements EventObserver {

View File

@ -1,5 +1,10 @@
package com.iluwatar.event.aggregator;
/**
*
* Weekday enumeration
*
*/
public enum Weekday {
MONDAY("Monday"), TUESDAY("Tuesday"), WEDNESDAY("Wednesday"), THURSDAY("Thursday"), FRIDAY("Friday"), SATURDAY("Saturday"), SUNDAY("Sunday");

View File

@ -3,6 +3,11 @@ import org.junit.Test;
import com.iluwatar.event.aggregator.App;
/**
*
* Application test
*
*/
public class AppTest {
@Test