Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.sbugs.logic.state
Interface TransitionHandler  view TransitionHandler download TransitionHandler.java


public interface TransitionHandler

Any class that wishes to deal with Defect state changes must implement this interface. In addition, the class must provide a no arguement constructor, so that it can be instantiated via reflection.


Method Summary
 void handleTransition(org.sbugs.model.defect.Defect defect, java.util.Map params, java.sql.Connection connection)
          This method is called whenever a defect's state is changed, and this class is registered as a handler for that state transition.
 

Method Detail

handleTransition

public void handleTransition(org.sbugs.model.defect.Defect defect,
                             java.util.Map params,
                             java.sql.Connection connection)
                      throws org.sbugs.exceptions.StateChangeException
This method is called whenever a defect's state is changed, and this class is registered as a handler for that state transition. Note that no thread safety is provided by the state machine, implementers must ensure thread safety themselves if necessary.