@Extension
public class CompatibilityDataPlugin
extends jenkins.model.GlobalConfiguration
Builder
.
When the user configures the project and enables this builder,
DescriptorImpl#newInstance(StaplerRequest)
is invoked
and a new CompatibilityDataPlugin
is created. The created
instance is persisted to the project configuration XML by using
XStream, so this allows you to use instance fields (like #name
)
to remember the configuration.
When a build is performed, the #perform(AbstractBuild, Launcher, BuildListener)
method will be invoked.
Modifier and Type | Field and Description |
---|---|
static String |
LOG_PREFIX |
Constructor and Description |
---|
CompatibilityDataPlugin() |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
hudson.ExtensionList<CompatibilityDataProvider.CompatabilityDataProviderDescriptor> |
getAllProviders() |
CompatibilityDataProvider |
getProvider() |
<T extends CompatibilityDataProvider> |
getProvider(Class<T> t) |
void |
setProvider(CompatibilityDataProvider provider) |
all, getCategory, getDescriptor, getDisplayName, getGlobalConfigPage
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, 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 final String LOG_PREFIX
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws hudson.model.Descriptor.FormException
configure
in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>
hudson.model.Descriptor.FormException
public CompatibilityDataProvider getProvider()
public <T extends CompatibilityDataProvider> T getProvider(Class<T> t)
public void setProvider(CompatibilityDataProvider provider)
public hudson.ExtensionList<CompatibilityDataProvider.CompatabilityDataProviderDescriptor> getAllProviders()
Copyright © 2004-2015. All Rights Reserved.