Files
java-design-patterns/event-driven-architecture/src/main/java/com/iluwatar/eda/advanced/App.java

11 lines
275 B
Java
Raw Normal View History

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());
}
}