public abstract class BuildStepDescriptor<T extends BuildStep & Describable<T>> extends Descriptor<T>
Descriptor
for Builder
and Publisher
.
For compatibility reasons, plugins developed before 1.150 may not extend from this descriptor type.
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
clazz
Modifier | Constructor and Description |
---|---|
protected |
BuildStepDescriptor()
Infers the type of the corresponding
BuildStep from the outer class. |
protected |
BuildStepDescriptor(Class<? extends T> clazz) |
Modifier and Type | Method and Description |
---|---|
static <T extends BuildStep & Describable<T>> |
filter(List<Descriptor<T>> base,
Class<? extends AbstractProject> type)
Filters a descriptor for
BuildStep s by using isApplicable(Class) . |
abstract boolean |
isApplicable(Class<? extends AbstractProject> jobType)
Returns true if this task is applicable to the given project.
|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
protected BuildStepDescriptor()
BuildStep
from the outer class.
This version works when you follow the common convention, where a descriptor
is written as the static nested class of the describable class.public abstract boolean isApplicable(Class<? extends AbstractProject> jobType)
AbstractProject.AbstractProjectDescriptor.isApplicable(Descriptor)
public static <T extends BuildStep & Describable<T>> List<Descriptor<T>> filter(List<Descriptor<T>> base, Class<? extends AbstractProject> type)
BuildStep
s by using isApplicable(Class)
.Copyright © 2004–2021. All rights reserved.