static List<RootElementConfigurator> all() {
final Jenkins jenkins = Jenkins.get();
List<RootElementConfigurator> configurators = new ArrayList<>(
jenkins.getExtensionList(RootElementConfigurator.class));
for (GlobalConfigurationCategory category : GlobalConfigurationCategory.all()) {
configurators.add(new GlobalConfigurationCategoryConfigurator(category));
}
for (ManagementLink link : ManagementLink.all()) {
final String name = link.getUrlName();
final Descriptor descriptor = Jenkins.get().getDescriptor(name);
if (descriptor != null)
configurators.add(new DescriptorConfigurator(descriptor));
}
configurators.sort(Configurator.extensionOrdinalSort());
return configurators;
}
public static DockerManagement get() {
return ManagementLink.all().get(DockerManagement.class);
}