org.sonar.batch.events
Class EventBus

java.lang.Object
  extended by org.sonar.batch.events.EventBus

public class EventBus
extends Object

Dispatches BatchEvents. Eases decoupling by allowing objects to interact without having direct dependencies upon one another, and without requiring event sources to deal with maintaining handler lists.


Constructor Summary
EventBus(EventHandler[] handlers)
           
 
Method Summary
 void fireEvent(BatchEvent event)
          Fires the given event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventBus

public EventBus(EventHandler[] handlers)
Method Detail

fireEvent

public void fireEvent(BatchEvent event)
Fires the given event.



Copyright © 2009-2012 SonarSource. All Rights Reserved.