Class WithScriptDescriptor<T extends WithScriptDescribable<T>>
java.lang.Object
hudson.model.Descriptor<T>
org.jenkinsci.plugins.pipeline.modeldefinition.withscript.WithScriptDescriptor<T>
- Direct Known Subclasses:
DeclarativeAgentDescriptor
,DeclarativeStageConditionalDescriptor
public abstract class WithScriptDescriptor<T extends WithScriptDescribable<T>>
extends Descriptor<T>
Descriptor for
WithScriptDescribable
.- Author:
- Andrew Bayer
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
The name for this type.The full package and class name for theWithScriptScript
class corresponding to this.Creates an instance of the correspondingWithScriptDescribable
with no arguments.newInstance
(Map<String, Object> arguments) Creates an instance of the correspondingWithScriptDescribable
from the given arguments.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, 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
-
Constructor Details
-
WithScriptDescriptor
protected WithScriptDescriptor()
-
-
Method Details
-
getName
The name for this type. Defaults to the first string in theSymbol
on the class.- Returns:
- The name.
-
getScriptClass
The full package and class name for theWithScriptScript
class corresponding to this. Defaults to theWithScriptDescribable
class name with "Script" appended to the end.- Returns:
- The class name, defaulting to the
WithScriptDescribable
Descriptor.clazz
class name with "Script" appended.
-
newInstance
Creates an instance of the correspondingWithScriptDescribable
from the given arguments.- Parameters:
arguments
- A map of strings/objects to be passed to the constructor.- Returns:
- An instantiated
WithScriptDescribable
- Throws:
Exception
- if there are issues instantiating
-
newInstance
Creates an instance of the correspondingWithScriptDescribable
with no arguments.- Returns:
- An instantiated
WithScriptDescribable
- Throws:
Exception
- if there are issues instantiating
-