Package io.jmix.core.common.event
Class EventRouter
java.lang.Object
io.jmix.core.common.event.EventRouter
Generic Event router with lazily initialized event map.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<L> void
addListener
(Class<L> listenerClass, L listener) <L> void
addListener
(Class<L> listenerClass, L listener, Runnable runIfFirstListenerWasAdded) <L,
E> void fireEvent
(Class<L> listenerClass, BiConsumer<L, E> invoker, E event) <L> boolean
hasListeners
(Class<L> listenerClass) <L> void
removeListener
(Class<L> listenerClass, L listener) <L> void
removeListener
(Class<L> listenerClass, L listener, Runnable runIfLastListenerWasRemoved) <L> void
removeListeners
(Class<L> listenerClass)
-
Constructor Details
-
EventRouter
public EventRouter()
-
-
Method Details
-
fireEvent
-
addListener
-
addListener
-
removeListener
-
removeListener
-
removeListeners
-
hasListeners
-