org.hudsonci.rest.plugin.cometd
Class BuildEventPublisher

java.lang.Object
  extended by hudson.model.listeners.RunListener<AbstractBuild>
      extended by org.hudsonci.rest.plugin.cometd.BuildEventPublisher
All Implemented Interfaces:
ExtensionPoint

@Named
@Singleton
public class BuildEventPublisher
extends RunListener<AbstractBuild>

Publishes BuildEventDTO messages.

Since:
2.1.0
Author:
Jason Dillon

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.listeners.RunListener
LISTENERS, targetType
 
Constructor Summary
BuildEventPublisher(JsonCodec codec)
           
 
Method Summary
 void onFinalized(AbstractBuild build)
           
 void onStarted(AbstractBuild build, TaskListener listener)
           
 
Methods inherited from class hudson.model.listeners.RunListener
all, fireCompleted, fireDeleted, fireFinalized, fireStarted, onCompleted, onDeleted, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildEventPublisher

@Inject
public BuildEventPublisher(JsonCodec codec)
Method Detail

onStarted

public void onStarted(AbstractBuild build,
                      TaskListener listener)
Overrides:
onStarted in class RunListener<AbstractBuild>

onFinalized

public void onFinalized(AbstractBuild build)
Overrides:
onFinalized in class RunListener<AbstractBuild>


Copyright © 2004-2011 Hudson. All Rights Reserved.