mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 02:59:23 +00:00
#113 Event Driven Architecture
- initial commit includes a simple and advanced example of Event-driven architecture
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package com.iluwatar.eda.advanced;
|
||||
|
||||
public class App {
|
||||
|
||||
public static void main(String[] args) {
|
||||
EventDispatcher dispatcher = new EventDispatcher();
|
||||
dispatcher.registerChannel(Event.class, new Handler());
|
||||
dispatcher.dispatch(new Event());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user