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.SimpleApplicationEventMulticasterThe HybrisApplicationEventMulticaster extends theSimpleApplicationEventMulticasterso we can keep track of the listeners that are registered. Mainly it changes the visibility ofgetApplicationListeners()to public. See hybris jira PLA-7411<bean id="applicationEventMulticaster" class="de.hybris.platform.servicelayer.event.impl.HybrisApplicationEventMulticaster">
-
-
Constructor Summary
Constructors Constructor Description HybrisApplicationEventMulticaster()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.context.ApplicationEventdecorate(org.springframework.context.ApplicationEvent original)java.util.Collection<org.springframework.context.ApplicationListener<?>>getApplicationListeners()protected java.util.List<EventDecorator<AbstractEvent>>getDecorators(AbstractEvent event)protected voidhandleListenerError(java.lang.RuntimeException e, org.springframework.context.ApplicationEvent event)protected booleanhasDecorators()voidmulticastEvent(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(java.util.Collection<EventDecorator<AbstractEvent>> allDecorators)booleansupportsEventType(EventDecorator<AbstractEvent> decorator, java.lang.Class<? extends AbstractEvent> eventType)-
Methods inherited from class org.springframework.context.event.SimpleApplicationEventMulticaster
getErrorHandler, getTaskExecutor, invokeListener, multicastEvent, setErrorHandler, setTaskExecutor
-
Methods inherited from class org.springframework.context.event.AbstractApplicationEventMulticaster
addApplicationListener, addApplicationListenerBean, getApplicationListeners, removeAllListeners, removeApplicationListener, removeApplicationListenerBean, removeApplicationListenerBeans, removeApplicationListeners, setBeanClassLoader, setBeanFactory, supportsEvent, supportsEvent
-
-
-
-
Method Detail
-
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(java.lang.RuntimeException e, org.springframework.context.ApplicationEvent event)
-
getApplicationListeners
public java.util.Collection<org.springframework.context.ApplicationListener<?>> 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
protected java.util.List<EventDecorator<AbstractEvent>> getDecorators(AbstractEvent event)
-
supportsEventType
public boolean supportsEventType(EventDecorator<AbstractEvent> decorator, java.lang.Class<? extends AbstractEvent> eventType)
-
setAllDecorators
@Autowired(required=false) public void setAllDecorators(java.util.Collection<EventDecorator<AbstractEvent>> allDecorators)
-
-