Java 类hudson.tasks.BuildWrapperDescriptor 实例源码

项目:Jenkins-Plugin-Examples    文件:CoreWrapperStep.java   
public Collection<BuildWrapperDescriptor> getApplicableDescriptors() {
    Collection<BuildWrapperDescriptor> r = new ArrayList<>();
    for (BuildWrapperDescriptor d : Jenkins.getActiveInstance().getExtensionList(BuildWrapperDescriptor.class)) {
        if (SimpleBuildWrapper.class.isAssignableFrom(d.clazz)) {
            r.add(d);
        }
    }
    return r;
}