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