com.github.zhengframework.event.EventDispatcher Maven / Gradle / Ivy
package com.github.zhengframework.event;
import java.lang.reflect.Method;
@SuppressWarnings("UnusedReturnValue")
public interface EventDispatcher {
EventRegistration registerListener(
Class eventType, EventListener eventListener);
EventRegistration registerListener(EventListener extends Event> eventListener);
EventRegistration registerListener(Object instance, Method method,
Class extends Event> acceptedType);
void publishEvent(Event event);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy