com.sonyericsson.hudson.plugins.gerrit.gerritevents.workers
Class AbstractGerritEventWork

java.lang.Object
  extended by com.sonyericsson.hudson.plugins.gerrit.gerritevents.workers.AbstractGerritEventWork
All Implemented Interfaces:
Work
Direct Known Subclasses:
AbstractJsonObjectWork, GerritEventWork

public abstract class AbstractGerritEventWork
extends Object
implements Work

Base work when all other work is done. Notifies the listeners of the event.

Author:
Robert Sandell <robert.sandell@sonyericsson.com>

Constructor Summary
AbstractGerritEventWork()
           
 
Method Summary
protected  void perform(GerritEvent event, Coordinator coordinator)
          Performs the work.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sonyericsson.hudson.plugins.gerrit.gerritevents.workers.Work
perform
 

Constructor Detail

AbstractGerritEventWork

public AbstractGerritEventWork()
Method Detail

perform

protected void perform(GerritEvent event,
                       Coordinator coordinator)
Performs the work. I.e. calls Coordinator.notifyListeners(com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.GerritEvent).

Parameters:
event - the event to ask the Coordinator to notify with.
coordinator - the coordinator to call.


Copyright © 2004-2012 Hudson. All Rights Reserved.