org.sonar.batch.events
Class BatchStepEvent

java.lang.Object
  extended by org.sonar.batch.events.BatchEvent<H>
      extended by org.sonar.batch.phases.AbstractPhaseEvent<BatchStepHandler>
          extended by org.sonar.batch.events.BatchStepEvent
All Implemented Interfaces:
BatchStepHandler.BatchStepEvent

public class BatchStepEvent
extends AbstractPhaseEvent<BatchStepHandler>
implements BatchStepHandler.BatchStepEvent

Generic event for some steps of project scan.

Since:
3.7

Constructor Summary
BatchStepEvent(String stepName, boolean start)
           
 
Method Summary
protected  void dispatch(BatchStepHandler handler)
          Do not call directly - should be called only by EventBus.
protected  Class getType()
          Returns class of associated handler.
 String stepName()
           
 
Methods inherited from class org.sonar.batch.phases.AbstractPhaseEvent
isEnd, isStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sonar.batch.events.BatchStepHandler.BatchStepEvent
isEnd, isStart
 

Constructor Detail

BatchStepEvent

public BatchStepEvent(String stepName,
                      boolean start)
Method Detail

stepName

public String stepName()
Specified by:
stepName in interface BatchStepHandler.BatchStepEvent

dispatch

protected void dispatch(BatchStepHandler handler)
Description copied from class: BatchEvent
Do not call directly - should be called only by EventBus. Typically should be implemented as following: handler.onEvent(this)

Specified by:
dispatch in class BatchEvent<BatchStepHandler>

getType

protected Class getType()
Description copied from class: BatchEvent
Returns class of associated handler. Used by EventBus to dispatch events to the correct handlers.

Specified by:
getType in class BatchEvent<BatchStepHandler>


Copyright © 2009–2015 SonarSource. All rights reserved.