hudson.diagnosis
Class NullIdDescriptorMonitor

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.AdministrativeMonitor
          extended by hudson.diagnosis.NullIdDescriptorMonitor
All Implemented Interfaces:
ExtensionPoint, ModelObject, SearchableModelObject, SearchItem

@Extension
public class NullIdDescriptorMonitor
extends AdministrativeMonitor

Some old descriptors apparently has the getId() method that's used in different ways and that's causing errors like JENKINS-8866, so detect and report that.

Since:
1.402
Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.AdministrativeMonitor
id
 
Constructor Summary
NullIdDescriptorMonitor()
           
 
Method Summary
 List<Descriptor> getProblems()
           
 boolean isActivated()
          Returns true if this monitor is activated and wants to produce a warning message.
static void verifyId()
           
 
Methods inherited from class hudson.model.AdministrativeMonitor
all, disable, doDisable, getDisplayName, getSearchUrl, getUrl, isEnabled
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullIdDescriptorMonitor

public NullIdDescriptorMonitor()
Method Detail

isActivated

public boolean isActivated()
Description copied from class: AdministrativeMonitor
Returns true if this monitor is activated and wants to produce a warning message.

This method is called from the HTML rendering thread, so it should run efficiently.

Specified by:
isActivated in class AdministrativeMonitor

getProblems

public List<Descriptor> getProblems()

verifyId

@Initializer(after=EXTENSIONS_AUGMENTED)
public static void verifyId()


Copyright © 2004-2013. All Rights Reserved.