Class HybrisApplicationEventMulticaster
java.lang.Object
org.springframework.context.event.AbstractApplicationEventMulticaster
org.springframework.context.event.SimpleApplicationEventMulticaster
de.hybris.platform.servicelayer.event.impl.HybrisApplicationEventMulticaster
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.context.event.ApplicationEventMulticaster
public class HybrisApplicationEventMulticaster
extends org.springframework.context.event.SimpleApplicationEventMulticaster
The HybrisApplicationEventMulticaster extends the
SimpleApplicationEventMulticaster so we can keep track of
the listeners that are registered. Mainly it changes the visibility of getApplicationListeners() to public.
See hybris jira PLA-7411
<bean id="applicationEventMulticaster" class="de.hybris.platform.servicelayer.event.impl.HybrisApplicationEventMulticaster">
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.context.ApplicationEventdecorate(org.springframework.context.ApplicationEvent original) Collection<org.springframework.context.ApplicationListener<?>>protected List<EventDecorator<AbstractEvent>>getDecorators(AbstractEvent event) protected voidhandleListenerError(RuntimeException e, org.springframework.context.ApplicationEvent event) protected booleanvoidmulticastEvent(org.springframework.context.ApplicationEvent event, org.springframework.core.ResolvableType eventType) protected voidnotifyListeners(org.springframework.context.ApplicationEvent event) protected voidnotifyListeners(org.springframework.context.ApplicationEvent event, org.springframework.core.ResolvableType eventType) voidsetAllDecorators(Collection<EventDecorator<AbstractEvent>> allDecorators) booleansupportsEventType(EventDecorator<AbstractEvent> decorator, Class<? extends AbstractEvent> eventType) Methods inherited from class org.springframework.context.event.SimpleApplicationEventMulticaster
getErrorHandler, getTaskExecutor, invokeListener, multicastEvent, setErrorHandler, setTaskExecutorMethods inherited from class org.springframework.context.event.AbstractApplicationEventMulticaster
addApplicationListener, addApplicationListenerBean, getApplicationListeners, removeAllListeners, removeApplicationListener, removeApplicationListenerBean, removeApplicationListenerBeans, removeApplicationListeners, setBeanClassLoader, setBeanFactory, supportsEvent, supportsEvent
-
Constructor Details
-
HybrisApplicationEventMulticaster
public HybrisApplicationEventMulticaster()
-
-
Method Details
-
multicastEvent
public void multicastEvent(org.springframework.context.ApplicationEvent event, org.springframework.core.ResolvableType eventType) - Specified by:
multicastEventin interfaceorg.springframework.context.event.ApplicationEventMulticaster- Overrides:
multicastEventin classorg.springframework.context.event.SimpleApplicationEventMulticaster
-
notifyListeners
protected void notifyListeners(org.springframework.context.ApplicationEvent event) -
notifyListeners
protected void notifyListeners(org.springframework.context.ApplicationEvent event, org.springframework.core.ResolvableType eventType) -
handleListenerError
protected void handleListenerError(RuntimeException e, org.springframework.context.ApplicationEvent event) -
getApplicationListeners
- Overrides:
getApplicationListenersin classorg.springframework.context.event.AbstractApplicationEventMulticaster
-
decorate
protected org.springframework.context.ApplicationEvent decorate(org.springframework.context.ApplicationEvent original) -
hasDecorators
protected boolean hasDecorators() -
getDecorators
-
supportsEventType
public boolean supportsEventType(EventDecorator<AbstractEvent> decorator, Class<? extends AbstractEvent> eventType) -
setAllDecorators
@Autowired(required=false) public void setAllDecorators(Collection<EventDecorator<AbstractEvent>> allDecorators)
-