Package hudson.ivy
Class IvyReporterDescriptor
Descriptor for IvyReporter.- Author:
- Kohsuke Kawaguchi
-
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
ConstructorsModifierConstructorDescriptionprotectedInfers the type of the correspondingDescribablefrom the outer class.protectedIvyReporterDescriptor(Class<? extends IvyReporter> clazz) -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<IvyReporterDescriptor>all()Lists all the currently registered instances ofIvyReporterDescriptor.final booleanReturns true if this descriptor hasconfig.jelly.newAutoInstance(IvyModule module) Returns an instance used for automaticIvyReporteractivation.newInstance(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) Ifthe reporter has no configuration screen, this method can safely return null, which is the default implementation.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
IvyReporterDescriptor
-
IvyReporterDescriptor
protected IvyReporterDescriptor()Infers the type of the correspondingDescribablefrom the outer class. This version works when you follow the common convention, where a descriptor is written as the static nested class of the describable class.- Since:
- 1.278
-
-
Method Details
-
newAutoInstance
Returns an instance used for automaticIvyReporteractivation.Some
IvyReporters, such asIvyArtifactArchiver, can work just with the configuration in the Ivy descriptor and don't need any additional Jenkins configuration. They also don't need any explicit enabling/disabling as they can activate themselves by listening to the callback from the build (for example javadoc archiver can do the work in response to the execution of the javadoc target.)Those
IvyReporters should return a valid instance from this method. Such instance will then participate into the build and receive event callbacks. -
newInstance
public IvyReporter newInstance(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) throws Descriptor.FormException Ifthe reporter has no configuration screen, this method can safely return null, which is the default implementation.- Overrides:
newInstancein classDescriptor<IvyReporter>- Throws:
Descriptor.FormException
-
hasConfigScreen
public final boolean hasConfigScreen()Returns true if this descriptor hasconfig.jelly. -
all
Lists all the currently registered instances ofIvyReporterDescriptor.
-