jenkins.model.Jenkins.getDescriptorList()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(288)

本文整理了Java中jenkins.model.Jenkins.getDescriptorList()方法的一些代码示例,展示了Jenkins.getDescriptorList()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jenkins.getDescriptorList()方法的具体详情如下:
包路径:jenkins.model.Jenkins
类名称:Jenkins
方法名:getDescriptorList

Jenkins.getDescriptorList介绍

[英]Returns ExtensionList that retains the discovered Descriptor instances for the given kind of Describable.
[中]返回ExtensionList,它为给定类型的可描述项保留发现的描述符实例。

代码示例

代码示例来源:origin: jenkinsci/jenkins

/**
 * Returns all the registered {@link ViewJobFilter} descriptors.
 */
public static DescriptorExtensionList<ViewJobFilter, Descriptor<ViewJobFilter>> all() {
  return Jenkins.getInstance().<ViewJobFilter, Descriptor<ViewJobFilter>>getDescriptorList(ViewJobFilter.class);
}

代码示例来源:origin: jenkinsci/jenkins

/**
   * Lists up all the registered {@link LabelAtomPropertyDescriptor}s in the system.
   */
  public static DescriptorExtensionList<LabelAtomProperty,LabelAtomPropertyDescriptor> all() {
    return Jenkins.getInstance().<LabelAtomProperty,LabelAtomPropertyDescriptor>getDescriptorList(LabelAtomProperty.class);
  }
}

代码示例来源:origin: jenkinsci/jenkins

/**
   * Lists up all the registered {@link ToolPropertyDescriptor}s in the system.
   *
   * @see ToolDescriptor#getPropertyDescriptors() 
   */
  public static DescriptorExtensionList<ToolProperty<?>,ToolPropertyDescriptor> all() {
    return (DescriptorExtensionList) Jenkins.getInstance().getDescriptorList(ToolProperty.class);
  }
}

代码示例来源:origin: jenkinsci/jenkins

/**
   * Returns all the registered {@link Publisher} descriptors.
   */
  // for backward compatibility, the signature is not BuildStepDescriptor
  public static DescriptorExtensionList<Publisher,Descriptor<Publisher>> all() {
    return Jenkins.getInstance().<Publisher,Descriptor<Publisher>>getDescriptorList(Publisher.class);
  }
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Gets the actual data store. This is the key to control the dual-mode nature of {@link DescriptorList}
 */
private List<Descriptor<T>> store() {
  if(type==null)
    return legacy;
  else
    return Jenkins.getInstance().<T,Descriptor<T>>getDescriptorList(type);
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Returns all the registered {@link ParameterDefinition} descriptors.
 */
public static DescriptorExtensionList<ParameterDefinition,ParameterDescriptor> all() {
  return Jenkins.getInstance().<ParameterDefinition,ParameterDescriptor>getDescriptorList(ParameterDefinition.class);
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Returns all the registered {@link UserPropertyDescriptor}s.
 */
public static DescriptorExtensionList<UserProperty,UserPropertyDescriptor> all() {
  return Jenkins.getInstance().<UserProperty,UserPropertyDescriptor>getDescriptorList(UserProperty.class);
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Returns all the registered {@link ListViewColumn} descriptors.
 */
public static DescriptorExtensionList<ListViewColumn, Descriptor<ListViewColumn>> all() {
  return Jenkins.getInstance().<ListViewColumn, Descriptor<ListViewColumn>>getDescriptorList(ListViewColumn.class);
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Returns all the registered {@link CrumbIssuer} descriptors.
 */
public static DescriptorExtensionList<CrumbIssuer, Descriptor<CrumbIssuer>> all() {
  return Jenkins.getInstance().<CrumbIssuer, Descriptor<CrumbIssuer>>getDescriptorList(CrumbIssuer.class);
}

代码示例来源:origin: jenkinsci/jenkins

/**
   * Returns all the registered {@link NodeMonitor} descriptors.
   */
  public static DescriptorExtensionList<NodeMonitor,Descriptor<NodeMonitor>> all() {
    return Jenkins.getInstance().<NodeMonitor,Descriptor<NodeMonitor>>getDescriptorList(NodeMonitor.class);
  }
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Returns all the registered {@link SCMDescriptor}s.
 */
public static DescriptorExtensionList<SCM,SCMDescriptor<?>> all() {
  return Jenkins.getInstance().<SCM,SCMDescriptor<?>>getDescriptorList(SCM.class);
}

代码示例来源:origin: jenkinsci/jenkins

/**
   * Returns all the registered {@link ConsoleAnnotationDescriptor} descriptors.
   */
  public static DescriptorExtensionList<ConsoleNote<?>,ConsoleAnnotationDescriptor> all() {
    return (DescriptorExtensionList) Jenkins.getInstance().getDescriptorList(ConsoleNote.class);
  }
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Returns all the registered {@link FileSystemProvisioner} descriptors.
 */
public static DescriptorExtensionList<FileSystemProvisioner,FileSystemProvisionerDescriptor> all() {
  return Jenkins.getInstance().<FileSystemProvisioner,FileSystemProvisionerDescriptor>getDescriptorList(FileSystemProvisioner.class);
}

代码示例来源:origin: jenkinsci/jenkins

/**
   * Returns all the registered {@link BuildWrapper} descriptors.
   */
  // for compatibility we can't use BuildWrapperDescriptor
  public static DescriptorExtensionList<BuildWrapper,Descriptor<BuildWrapper>> all() {
    // use getDescriptorList and not getExtensionList to pick up legacy instances
    return Jenkins.getInstance().<BuildWrapper,Descriptor<BuildWrapper>>getDescriptorList(BuildWrapper.class);
  }
}

代码示例来源:origin: jenkinsci/jenkins

/**
   * Returns all the registered {@link MarkupFormatterDescriptor}s.
   */
  public static DescriptorExtensionList<MarkupFormatter,MarkupFormatterDescriptor> all() {
    return Jenkins.getInstance().<MarkupFormatter,MarkupFormatterDescriptor>
                  getDescriptorList(MarkupFormatter.class);
  }
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Returns all the registered {@link ListViewColumn} descriptors.
 */
public static DescriptorExtensionList<MyViewsTabBar, Descriptor<MyViewsTabBar>> all() {
  return Jenkins.getInstance().<MyViewsTabBar, Descriptor<MyViewsTabBar>>getDescriptorList(MyViewsTabBar.class);
}

代码示例来源:origin: jenkinsci/jenkins

/**
   * Returns all the registered {@link Builder} descriptors.
   */
  // for backward compatibility, the signature is not BuildStepDescriptor
  public static DescriptorExtensionList<Builder,Descriptor<Builder>> all() {
    return Jenkins.getInstance().<Builder,Descriptor<Builder>>getDescriptorList(Builder.class);
  }
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Returns all the registered {@link Trigger} descriptors.
 */
public static DescriptorExtensionList<Trigger<?>,TriggerDescriptor> all() {
  return (DescriptorExtensionList) Jenkins.getInstance().getDescriptorList(Trigger.class);
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Returns all the registered {@link ViewDescriptor}s.
 */
public static DescriptorExtensionList<View,ViewDescriptor> all() {
  return Jenkins.getInstance().<View,ViewDescriptor>getDescriptorList(View.class);
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Returns all the registered {@link ViewsTabBar} descriptors.
 */
public static DescriptorExtensionList<ViewsTabBar, Descriptor<ViewsTabBar>> all() {
  return Jenkins.getInstance().<ViewsTabBar, Descriptor<ViewsTabBar>>getDescriptorList(ViewsTabBar.class);
}

相关文章

Jenkins类方法