org.sonar.batch.events
Class BatchEvent<H extends EventHandler>
java.lang.Object
org.sonar.batch.events.BatchEvent<H>
- Type Parameters:
H
- handler type
public abstract class BatchEvent<H extends EventHandler>
- extends Object
Root of all Sonar Batch events.
Method Summary |
protected abstract void |
dispatch(H handler)
Do not call directly - should be called only by EventBus . |
protected abstract Class |
getType()
Returns class of associated handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchEvent
protected BatchEvent()
dispatch
protected abstract void dispatch(H handler)
- Do not call directly - should be called only by
EventBus
.
Typically should be implemented as following: handler.onEvent(this)
getType
protected abstract Class getType()
- Returns class of associated handler. Used by
EventBus
to dispatch events to the correct handlers.
Copyright © 2009-2012 SonarSource. All Rights Reserved.