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
DeclarativeAgentDescriptor s. |
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, newInstance
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
public static hudson.ExtensionList<DeclarativeAgentDescriptor> all()
DeclarativeAgentDescriptor
s.DeclarativeAgentDescriptor
s registered.`public static Map<String,org.jenkinsci.plugins.structs.describable.DescribableModel> getDescribableModels()
DescribableModel
of all known/registered descriptors.DescribableModel
spublic 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
@Nonnull public static DeclarativeAgent<?> instanceForDescriptor(@Nonnull DeclarativeAgentDescriptor<?> descriptor, Map<String,Object> arguments) throws Exception
descriptor
- The descriptor instancearguments
- A map of argumentsDeclarativeAgent
instance.Exception
Copyright © 2016–2017. All rights reserved.