-
Notifications
You must be signed in to change notification settings - Fork 2
Register an event manager
Nurio Fernández edited this page Sep 3, 2020
·
4 revisions
EventManager records the listening of events and manages event calls. You will need an instance for your application.
You can have more than one event manager instance, but in that case, the event priority will not work properly. Each manager will manage just themself events.
public class Main {
private static EventManager eventManager = new EventManager();
public static EventManager getEventManager() {
return eventManager;
}
public static void main(String[] args) {
System.out.println("Hello world!");
}
}More information about execution priority.
More information about how to listen to an event.
More information about how to register an event listener to an event manager.