mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 20:59:07 +00:00
eb396217d0
- initial commit includes a simple and advanced example of Event-driven architecture
11 lines
275 B
Java
11 lines
275 B
Java
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());
|
|
}
|
|
}
|