mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 14:59:25 +00:00
#113 Event Driven Architecture
- added class diagram - added more comments
This commit is contained in:
+14
@@ -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!");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user