mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 10:13:46 +00:00
#113 Event Driven Architecture
- initial commit includes a simple and advanced example of Event-driven architecture
This commit is contained in:
1 parent
092d48d150
commit
eb396217d0
12 files changed
+184
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package com.iluwatar.eda.simple;
|
||||
|
||||
/**
|
||||
* The {@link EventHandler} class handles performs actions on {@link Event} objects
|
||||
*/
|
||||
public class EventHandler {
|
||||
|
||||
public static void handleEventA(Event e){
|
||||
System.out.println(e.data);
|
||||
}
|
||||
|
||||
public static void handleEventB(Event e){
|
||||
System.out.println(e.data.toUpperCase());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user