hudson.plugins.buildblocker
Class BuildBlockerProperty.BuildBlockerDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<hudson.model.JobProperty<?>>
      extended by hudson.model.JobPropertyDescriptor
          extended by hudson.plugins.buildblocker.BuildBlockerProperty.BuildBlockerDescriptor
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
BuildBlockerProperty

@Extension
public static final class BuildBlockerProperty.BuildBlockerDescriptor
extends hudson.model.JobPropertyDescriptor

Descriptor


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
BuildBlockerProperty.BuildBlockerDescriptor()
          Constructor loading the data from the config file
 
Method Summary
 String getDisplayName()
          Returns the name to be shown on the website
 boolean isApplicable(Class<? extends hudson.model.Job> jobType)
          Returns always true a it can be used in all types of jobs.
 BuildBlockerProperty newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
          Returns a new instance of the build blocker property when job config page is saved.
 
Methods inherited from class hudson.model.JobPropertyDescriptor
all, getPropertyDescriptors
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPossibleViewNames, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildBlockerProperty.BuildBlockerDescriptor

public BuildBlockerProperty.BuildBlockerDescriptor()
Constructor loading the data from the config file

Method Detail

getDisplayName

public String getDisplayName()
Returns the name to be shown on the website

Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.model.JobProperty<?>>
Returns:
the name to be shown on the website.

newInstance

public BuildBlockerProperty newInstance(org.kohsuke.stapler.StaplerRequest req,
                                        net.sf.json.JSONObject formData)
                                 throws hudson.model.Descriptor.FormException
Returns a new instance of the build blocker property when job config page is saved.

Overrides:
newInstance in class hudson.model.JobPropertyDescriptor
Parameters:
req - stapler request
formData - the form data
Returns:
a new instance of the build blocker property
Throws:
FormException
hudson.model.Descriptor.FormException

isApplicable

public boolean isApplicable(Class<? extends hudson.model.Job> jobType)
Returns always true a it can be used in all types of jobs.

Overrides:
isApplicable in class hudson.model.JobPropertyDescriptor
Parameters:
jobType - the job type to be checked if this property is applicable.
Returns:
true


Copyright © 2004-2012. All Rights Reserved.