List<String> services = servicesComponent.getSysVServices();
for (String name : services) {
Configuration pluginConfig = context.getDefaultPluginConfiguration();
pluginConfig.put(new PropertySimple("name", name));
pluginConfig.put(new PropertySimple("type", SYS_V_SERVICE));
DiscoveredResourceDetails detail = new DiscoveredResourceDetails(context.getResourceType(), name, name
+ " (Sys V)", null, "Service - [" + name + "]", pluginConfig, null);
details.add(detail);
}
services = servicesComponent.getXinetDServices();
for (String name : services) {
Configuration pluginConfig = context.getDefaultPluginConfiguration();
pluginConfig.put(new PropertySimple("name", name));
pluginConfig.put(new PropertySimple("type", XINETD_SERVICE));
DiscoveredResourceDetails detail = new DiscoveredResourceDetails(context.getResourceType(), name, name
+ " (XinetD)", null, "Service - [" + name + "]", pluginConfig, null);
details.add(detail);
}
return details;