com.sonyericsson.hudson.plugins.gerrit.gerritevents.workers
Class AbstractJsonObjectWork
java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.gerritevents.workers.AbstractGerritEventWork
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>
|
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 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 |
AbstractJsonObjectWork
public AbstractJsonObjectWork()
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.