org.alfresco.repo.management
Class SafeApplicationEventMulticaster
java.lang.Object
org.springframework.context.event.AbstractApplicationEventMulticaster
org.springframework.context.event.SimpleApplicationEventMulticaster
org.alfresco.repo.management.SafeApplicationEventMulticaster
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.ApplicationContextAware, org.springframework.context.event.ApplicationEventMulticaster
public class SafeApplicationEventMulticaster
- extends org.springframework.context.event.SimpleApplicationEventMulticaster
- implements org.springframework.context.ApplicationContextAware
A workaround for a Spring problem, where it tries to multicast to a parent application context that either hasn't
finished refreshing yet or is in the process of shutting down.
Method Summary |
void |
multicastEvent(org.springframework.context.ApplicationEvent event)
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
Methods inherited from class org.springframework.context.event.SimpleApplicationEventMulticaster |
getTaskExecutor, setTaskExecutor |
Methods inherited from class org.springframework.context.event.AbstractApplicationEventMulticaster |
addApplicationListener, addApplicationListenerBean, getApplicationListeners, getApplicationListeners, removeAllListeners, removeApplicationListener, removeApplicationListenerBean, setBeanFactory, supportsEvent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SafeApplicationEventMulticaster
public SafeApplicationEventMulticaster()
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
multicastEvent
public void multicastEvent(org.springframework.context.ApplicationEvent event)
- Specified by:
multicastEvent
in interface org.springframework.context.event.ApplicationEventMulticaster
- Overrides:
multicastEvent
in class org.springframework.context.event.SimpleApplicationEventMulticaster
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.