Files
java-design-patterns/event-driven-architecture/src/main/java/com/iluwatar/eda/simple/EventHandler.java

16 lines
348 B
Java
Raw Normal View History

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