com.github.dxee.dject.event.ApplicationEventDispatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dject-event Show documentation
Show all versions of dject-event Show documentation
A collection of guice extensions, help to improve the developer experience of guice.
package com.github.dxee.dject.event;
import java.lang.reflect.Method;
/**
* Interface for publishing {@link ApplicationEvent}s as well as programmatically registering
* {@link ApplicationEventListener}s.
*/
public interface ApplicationEventDispatcher {
ApplicationEventRegistration registerListener(Class eventType, ApplicationEventListener eventListener);
ApplicationEventRegistration registerListener(ApplicationEventListener extends ApplicationEvent> eventListener);
ApplicationEventRegistration registerListener(Object instance, Method method, Class extends ApplicationEvent> acceptedType);
void publishEvent(ApplicationEvent event);
}