public abstract class WithScriptDescriptor<T extends WithScriptDescribable<T>>
extends hudson.model.Descriptor<T>
WithScriptDescribable
.Constructor and Description |
---|
WithScriptDescriptor() |
Modifier and Type | Method and Description |
---|---|
String |
getName()
The name for this type.
|
String |
getScriptClass()
The full package and class name for the
WithScriptScript class corresponding to this. |
T |
newInstance()
Creates an instance of the corresponding
WithScriptDescribable with no arguments. |
T |
newInstance(Map<String,Object> arguments)
Creates an instance of the corresponding
WithScriptDescribable from the given arguments. |
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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
@Nonnull public String getName()
Symbol
on the class.@Nonnull public String getScriptClass()
WithScriptScript
class corresponding to this. Defaults to
the WithScriptDescribable
class name with "Script" appended to the end.WithScriptDescribable
Descriptor.clazz
class name with "Script" appended.public T newInstance(Map<String,Object> arguments) throws Exception
WithScriptDescribable
from the given arguments.arguments
- A map of strings/objects to be passed to the constructor.WithScriptDescribable
Exception
public T newInstance() throws Exception
WithScriptDescribable
with no arguments.WithScriptDescribable
Exception
Copyright © 2016–2017. All rights reserved.