org.zeroexchange.event
Class ApplicationEventsDispatcher

java.lang.Object
  extended by org.zeroexchange.common.AbstractBeansRegistry<T>
      extended by org.zeroexchange.common.TypedBeansRegistry<P>
          extended by org.zeroexchange.common.processors.AbstractDataProcessorsRegistry<EventProcessor>
              extended by org.zeroexchange.event.ApplicationEventsDispatcher
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.InitializingBean, BeansRegistry<EventProcessor>, EventsDispatcher

public class ApplicationEventsDispatcher
extends AbstractDataProcessorsRegistry<EventProcessor>
implements EventsDispatcher

The application-wide event dispatcher.

Author:
black

Constructor Summary
ApplicationEventsDispatcher()
           
 
Method Summary
protected  Class<?> getBeanClass()
           
 void publishEvent(Event event)
          Publishes the specified event.
 
Methods inherited from class org.zeroexchange.common.processors.AbstractDataProcessorsRegistry
getProcessor, getProcessors, isElected
 
Methods inherited from class org.zeroexchange.common.TypedBeansRegistry
afterPropertiesSet
 
Methods inherited from class org.zeroexchange.common.AbstractBeansRegistry
createBeansCollection, getBeans, postProcessAfterInitialization, postProcessBeforeInitialization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationEventsDispatcher

public ApplicationEventsDispatcher()
Method Detail

publishEvent

@Transactional
public void publishEvent(Event event)
Publishes the specified event.

Specified by:
publishEvent in interface EventsDispatcher

getBeanClass

protected Class<?> getBeanClass()
Specified by:
getBeanClass in class TypedBeansRegistry<EventProcessor>


Copyright © 2013. All Rights Reserved.