org.alfresco.repo.management
Class SafeEventPublisher

java.lang.Object
  extended by org.springframework.extensions.surf.util.AbstractLifecycleBean
      extended by org.alfresco.repo.management.SafeEventPublisher
All Implemented Interfaces:
java.util.EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationEventPublisher, org.springframework.context.ApplicationListener

public class SafeEventPublisher
extends org.springframework.extensions.surf.util.AbstractLifecycleBean
implements org.springframework.context.ApplicationEventPublisher

An event publisher that is safe to use while the context is in the process of refreshing. It queues up events until the context has refreshed, after which point events are published in real time.


Field Summary
 
Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
log
 
Constructor Summary
SafeEventPublisher()
           
 
Method Summary
protected  void onBootstrap(org.springframework.context.ApplicationEvent event)
           
protected  void onShutdown(org.springframework.context.ApplicationEvent event)
           
 void publishEvent(org.springframework.context.ApplicationEvent event)
           
 
Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
getApplicationContext, onApplicationEvent, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SafeEventPublisher

public SafeEventPublisher()
Method Detail

onBootstrap

protected void onBootstrap(org.springframework.context.ApplicationEvent event)
Specified by:
onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBean

onShutdown

protected void onShutdown(org.springframework.context.ApplicationEvent event)
Specified by:
onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBean

publishEvent

public void publishEvent(org.springframework.context.ApplicationEvent event)
Specified by:
publishEvent in interface org.springframework.context.ApplicationEventPublisher


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.