#113 Event Driven Architecture

- added class diagram
- added more comments
This commit is contained in:
chris
2015-11-23 11:20:20 +01:00
parent b4aeca3aa0
commit 321e9d4191
22 changed files with 123 additions and 158 deletions

View File

@@ -0,0 +1,14 @@
package com.iluwatar.eda.handler;
import com.iluwatar.eda.event.UserCreatedEvent;
import com.iluwatar.eda.framework.Channel;
/**
* Handles the {@link UserCreatedEvent} message
*/
public class UserCreatedEventHandler implements Channel<UserCreatedEvent> {
public void dispatch(UserCreatedEvent message) {
System.out.println("User Created!");
}
}

View File

@@ -0,0 +1,14 @@
package com.iluwatar.eda.handler;
import com.iluwatar.eda.event.UserUpdatedEvent;
import com.iluwatar.eda.framework.Channel;
/**
* Handles the {@link UserUpdatedEvent} message
*/
public class UserUpdatedEventHandler implements Channel<UserUpdatedEvent> {
public void dispatch(UserUpdatedEvent message) {
System.out.println("User Updated!");
}
}