public abstract class DeclarativeAgentDescriptor<A extends DeclarativeAgent<A>> extends WithScriptDescriptor<A>
DeclarativeAgent.| Constructor and Description |
|---|
DeclarativeAgentDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
static hudson.ExtensionList<DeclarativeAgentDescriptor> |
all()
Get all
DeclarativeAgentDescriptors. |
static List<DeclarativeAgentDescriptor> |
allSorted()
Get all
DeclarativeAgentDescriptors, sorted by name. |
static DeclarativeAgentDescriptor |
byName(String name)
Get the descriptor for a given name or null if not found.
|
static Map<String,org.jenkinsci.plugins.structs.describable.DescribableModel> |
getDescribableModels()
Get a map of name-to-
DescribableModel of all known/registered descriptors. |
static DeclarativeAgent<?> |
instanceForDescriptor(DeclarativeAgentDescriptor<?> descriptor,
Map<String,Object> arguments)
For a given descriptor and map of arguments, return an instance using those arguments.
|
static DeclarativeAgent<?> |
instanceForName(String name,
Map<String,Object> arguments)
For a given name and map of arguments, find the corresponding descriptor and return an instance using those arguments.
|
static Map<String,org.jenkinsci.plugins.structs.describable.DescribableModel> |
noRequiredArgsModels()
Get the map of the subset of descriptors with no required arguments.
|
static Map<String,org.jenkinsci.plugins.structs.describable.DescribableModel> |
zeroArgModels()
Get the map of the subset of descriptors with no additional arguments - i.e., "none" and "any".
|
getName, getScriptClass, newInstance, newInstanceaddHelpFileRedirect, 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, toMappublic static hudson.ExtensionList<DeclarativeAgentDescriptor> all()
DeclarativeAgentDescriptors.DeclarativeAgentDescriptors registered.public static List<DeclarativeAgentDescriptor> allSorted()
DeclarativeAgentDescriptors, sorted by name.DeclarativeAgentDescriptors registered, sorted by name.public static Map<String,org.jenkinsci.plugins.structs.describable.DescribableModel> getDescribableModels()
DescribableModel of all known/registered descriptors.DescribableModelspublic static Map<String,org.jenkinsci.plugins.structs.describable.DescribableModel> zeroArgModels()
public static Map<String,org.jenkinsci.plugins.structs.describable.DescribableModel> noRequiredArgsModels()
@Nullable public static DeclarativeAgentDescriptor byName(@Nonnull String name)
name - The name for the descriptor to look up@Nullable public static DeclarativeAgent<?> instanceForName(@Nonnull String name, Map<String,Object> arguments) throws Exception
name - The name of the descriptorarguments - A map of argumentsDeclarativeAgent instance, or null if the name isn't found.Exception - if there are issues instantiating from the descriptor@Nonnull public static DeclarativeAgent<?> instanceForDescriptor(@Nonnull DeclarativeAgentDescriptor<?> descriptor, Map<String,Object> arguments) throws Exception
descriptor - The descriptor instancearguments - A map of argumentsDeclarativeAgent instance.Exception - if there are issues instantiating from the descriptorCopyright © 2016–2020. All rights reserved.