本文整理了Java中jenkins.model.Jenkins.getDescriptorOrDie()
方法的一些代码示例,展示了Jenkins.getDescriptorOrDie()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jenkins.getDescriptorOrDie()
方法的具体详情如下:
包路径:jenkins.model.Jenkins
类名称:Jenkins
方法名:getDescriptorOrDie
[英]Works just like #getDescriptor(Class) but don't take no for an answer.
[中]工作原理与#getDescriptor(类)类似,但不接受否定的答案。
代码示例来源:origin: jenkinsci/jenkins
/**
* {@inheritDoc}
*/
@Override
public ParameterDescriptor getDescriptor() {
return (ParameterDescriptor) Jenkins.getInstance().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
/**
* Access global configuration for the crumb issuer.
*/
public CrumbIssuerDescriptor<CrumbIssuer> getDescriptor() {
return (CrumbIssuerDescriptor<CrumbIssuer>) Jenkins.getInstance().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
/**
* @return
* @see hudson.model.Describable#getDescriptor()
*/
@SuppressWarnings("unchecked")
@Override
public Descriptor<GlobalSecurityConfiguration> getDescriptor() {
return Jenkins.getInstance().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
/**
* {@inheritDoc}
*/
@Override
public JobPropertyDescriptor getDescriptor() {
return (JobPropertyDescriptor) Jenkins.getInstance().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
public SlaveDescriptor getDescriptor() {
Descriptor d = Jenkins.getInstance().getDescriptorOrDie(getClass());
if (d instanceof SlaveDescriptor)
return (SlaveDescriptor) d;
throw new IllegalStateException(d.getClass()+" needs to extend from SlaveDescriptor");
}
代码示例来源:origin: jenkinsci/jenkins
/**
* By default looks for a nested class (conventionally named {@code DescriptorImpl}) implementing {@link Descriptor} and marked with {@link Extension}.
* <p>{@inheritDoc}
*/
@Override
public Descriptor<T> getDescriptor() {
return Jenkins.getInstance().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
/**
* For compatibility reason, this method may not return a {@link ListViewColumnDescriptor}
* and instead return a plain {@link Descriptor} instance.
*/
public Descriptor<ListViewColumn> getDescriptor() {
return Jenkins.getInstance().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
public TopLevelItemDescriptor getDescriptor() {
return (TopLevelItemDescriptor) Jenkins.getInstance().getDescriptorOrDie(getClass());
}
}
代码示例来源:origin: jenkinsci/jenkins
@SuppressWarnings("unchecked")
public Descriptor<ViewJobFilter> getDescriptor() {
return Jenkins.getInstance().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
public ToolInstallerDescriptor<?> getDescriptor() {
return (ToolInstallerDescriptor) Jenkins.getInstance().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
public ToolPropertyDescriptor getDescriptor() {
return (ToolPropertyDescriptor) Jenkins.getInstance().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
public UserPropertyDescriptor getDescriptor() {
return (UserPropertyDescriptor) Jenkins.getInstance().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
public Descriptor<Builder> getDescriptor() {
return Jenkins.getInstance().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
public AbstractNodeMonitorDescriptor<?> getDescriptor() {
return (AbstractNodeMonitorDescriptor<?>) Jenkins.getInstance().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
public DescriptorImpl getDescriptor() {
return (DescriptorImpl)Jenkins.getInstance().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
public Descriptor<Cloud> getDescriptor() {
return Jenkins.get().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
public TriggerDescriptor getDescriptor() {
return (TriggerDescriptor) Jenkins.getInstance().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
public Descriptor<Publisher> getDescriptor() {
return Jenkins.getInstance().getDescriptorOrDie(getClass());
}
代码示例来源:origin: jenkinsci/jenkins
public Descriptor<ComputerSet> getDescriptor() {
return Jenkins.getInstance().getDescriptorOrDie(ComputerSet.class);
}
代码示例来源:origin: jenkinsci/jenkins
public ViewDescriptor getDescriptor() {
return (ViewDescriptor) Jenkins.getInstance().getDescriptorOrDie(getClass());
}
内容来源于网络,如有侵权,请联系作者删除!