本文整理了Java中hudson.Extension.ordinal()
方法的一些代码示例,展示了Extension.ordinal()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Extension.ordinal()
方法的具体详情如下:
包路径:hudson.Extension
类名称:Extension
方法名:ordinal
暂无
代码示例来源:origin: jenkinsci/jenkins
@Override
protected double getOrdinal(Extension annotation) {
return annotation.ordinal();
}
代码示例来源:origin: jenkinsci/jenkins
public ExtensionComponent(T instance, Extension annotation) {
this(instance,annotation.ordinal());
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
public ExtensionComponent(T instance, Extension annotation) {
this(instance,annotation.ordinal());
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
@Override
protected double getOrdinal(Extension annotation) {
return annotation.ordinal();
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
public ExtensionComponent(T instance, Extension annotation) {
this(instance,annotation.ordinal());
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
public ExtensionComponent(T instance, Extension annotation) {
this(instance,annotation.ordinal());
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
public ExtensionComponent(T instance, Extension annotation) {
this(instance, annotation.ordinal());
}
代码示例来源:origin: hudson/hudson-2.x
public ExtensionComponent(T instance, Extension annotation) {
this(instance,annotation.ordinal());
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-inject
public static Double priorityOf(final Annotation annotation) {
if (annotation != null) {
if (annotation instanceof Extension) {
return Double.valueOf(((Extension)annotation).ordinal());
}
if (annotation instanceof ExtensionQualifier) {
return Double.valueOf(((ExtensionQualifier)annotation).extension().ordinal());
}
if (annotation instanceof Priority) {
return Double.valueOf(((Priority)annotation).value());
}
}
return null;
}
}
代码示例来源:origin: org.eclipse.hudson/hudson-inject
public static Double priorityOf(final Annotation annotation) {
if (annotation != null) {
if (annotation instanceof Extension) {
return Double.valueOf(((Extension)annotation).ordinal());
}
if (annotation instanceof ExtensionQualifier) {
return Double.valueOf(((ExtensionQualifier)annotation).extension().ordinal());
}
if (annotation instanceof Priority) {
return Double.valueOf(((Priority)annotation).value());
}
}
return null;
}
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-inject
public static Double priorityOf(final Class<?> type) {
if (type != null) {
Extension extension = type.getAnnotation(Extension.class);
if (extension != null) {
return Double.valueOf(extension.ordinal());
}
ExtensionQualifier qualifier = type.getAnnotation(ExtensionQualifier.class);
if (qualifier != null) {
return Double.valueOf(qualifier.extension().ordinal());
}
Priority priority = type.getAnnotation(Priority.class);
if (priority != null) {
return Double.valueOf(priority.value());
}
}
return null;
}
代码示例来源:origin: org.eclipse.hudson/hudson-inject
public static Double priorityOf(final Class<?> type) {
if (type != null) {
Extension extension = type.getAnnotation(Extension.class);
if (extension != null) {
return Double.valueOf(extension.ordinal());
}
ExtensionQualifier qualifier = type.getAnnotation(ExtensionQualifier.class);
if (qualifier != null) {
return Double.valueOf(qualifier.extension().ordinal());
}
Priority priority = type.getAnnotation(Priority.class);
if (priority != null) {
return Double.valueOf(priority.value());
}
}
return null;
}
内容来源于网络,如有侵权,请联系作者删除!