use of org.osgi.framework.wiring.dto.FrameworkWiringDTO in project felix by apache.
the class DTOFactory method createFrameworkWiringDTO.
private static FrameworkWiringDTO createFrameworkWiringDTO(Felix framework) {
FrameworkWiringDTO dto = new FrameworkWiringDTO();
dto.resources = new HashSet<BundleRevisionDTO>();
dto.wirings = new HashSet<NodeDTO>();
Set<Bundle> bundles = new LinkedHashSet<Bundle>(Arrays.asList(framework.getBundles()));
bundles.addAll(framework.getRemovalPendingBundles());
for (Bundle bundle : bundles) {
addBundleWiring(bundle, dto.resources, dto.wirings);
}
return dto;
}
Aggregations