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

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

public abstract class AbstractJsonObjectWork
extends AbstractGerritEventWork
implements Work

Abstract work that converts a JSON object to a GerritEvent. After the conversion the work is handed over to AbstractGerritEventWork

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

Constructor Summary
AbstractJsonObjectWork()
           
 
Method Summary
protected  void perform(net.sf.json.JSONObject json, Coordinator coordinator)
          Parses the JSONObject into a Java bean and sends the parsed GerritEvent down the inheritance chain.
 
Methods inherited from class com.sonyericsson.hudson.plugins.gerrit.gerritevents.workers.AbstractGerritEventWork
perform
 
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

AbstractJsonObjectWork

public AbstractJsonObjectWork()
Method Detail

perform

protected void perform(net.sf.json.JSONObject json,
                       Coordinator coordinator)
Parses the JSONObject into a Java bean and sends the parsed GerritEvent down the inheritance chain.

Parameters:
json - the JSONObject to work on.
coordinator - the coordinator.


Copyright © 2004-2012 Hudson. All Rights Reserved.