Package io.jmix.ui.sys.event
Class UiEventsMulticasterImpl
java.lang.Object
io.jmix.ui.sys.event.UiEventsMulticasterImpl
- All Implemented Interfaces:
UiEventsMulticaster
@NotThreadSafe
@Scope("prototype")
@Component("ui_UiEventsMulticaster")
public class UiEventsMulticasterImpl
extends Object
implements UiEventsMulticaster
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addApplicationListener
(org.springframework.context.ApplicationListener<?> listener) protected void
invokeListener
(org.springframework.context.ApplicationListener listener, org.springframework.context.ApplicationEvent event) void
multicastEvent
(org.springframework.context.ApplicationEvent event) void
void
removeApplicationListener
(org.springframework.context.ApplicationListener<?> listener) protected org.springframework.core.ResolvableType
resolveDefaultEventType
(org.springframework.context.ApplicationEvent event) protected Collection<org.springframework.context.ApplicationListener<?>>
retrieveApplicationListeners
(org.springframework.core.ResolvableType eventType, Class<?> sourceType) protected boolean
supportsEvent
(org.springframework.context.ApplicationListener<?> listener, org.springframework.core.ResolvableType eventType, Class<?> sourceType)
-
Field Details
-
listeners
-
-
Constructor Details
-
UiEventsMulticasterImpl
public UiEventsMulticasterImpl()
-
-
Method Details
-
addApplicationListener
public void addApplicationListener(org.springframework.context.ApplicationListener<?> listener) - Specified by:
addApplicationListener
in interfaceUiEventsMulticaster
-
removeApplicationListener
public void removeApplicationListener(org.springframework.context.ApplicationListener<?> listener) - Specified by:
removeApplicationListener
in interfaceUiEventsMulticaster
-
removeAllListeners
public void removeAllListeners()- Specified by:
removeAllListeners
in interfaceUiEventsMulticaster
-
multicastEvent
public void multicastEvent(org.springframework.context.ApplicationEvent event) - Specified by:
multicastEvent
in interfaceUiEventsMulticaster
-
invokeListener
protected void invokeListener(org.springframework.context.ApplicationListener listener, org.springframework.context.ApplicationEvent event) -
resolveDefaultEventType
protected org.springframework.core.ResolvableType resolveDefaultEventType(org.springframework.context.ApplicationEvent event) -
retrieveApplicationListeners
protected Collection<org.springframework.context.ApplicationListener<?>> retrieveApplicationListeners(org.springframework.core.ResolvableType eventType, @Nullable Class<?> sourceType) -
supportsEvent
protected boolean supportsEvent(org.springframework.context.ApplicationListener<?> listener, org.springframework.core.ResolvableType eventType, @Nullable Class<?> sourceType)
-