hudson.plugins.jswidgets
Class JsRunListener

java.lang.Object
  extended by hudson.model.listeners.RunListener<AbstractBuild>
      extended by hudson.plugins.jswidgets.JsRunListener
All Implemented Interfaces:
ExtensionPoint

@Extension
public final class JsRunListener
extends RunListener<AbstractBuild>

This listener adds a JsBuildAction to every new build.

Author:
mfriedenhagen

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
private static Logger LOG
          The Logger.
 
Fields inherited from class hudson.model.listeners.RunListener
LISTENERS, targetType
 
Constructor Summary
JsRunListener()
          Extension needs parameterless constructor.
 
Method Summary
 void onFinalized(AbstractBuild r)
           Adds JsBuildAction to the build.
 
Methods inherited from class hudson.model.listeners.RunListener
all, fireCompleted, fireDeleted, fireFinalized, fireStarted, onCompleted, onDeleted, onStarted, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG
The Logger.

Constructor Detail

JsRunListener

public JsRunListener()
Extension needs parameterless constructor.

Method Detail

onFinalized

public void onFinalized(AbstractBuild r)
Adds JsBuildAction to the build. Do this in onFinalized, so the XML-data of the build is not affected.

Overrides:
onFinalized in class RunListener<AbstractBuild>


Copyright © 2009. All Rights Reserved.