Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/DTOBuilder.java')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/DTOBuilder.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/DTOBuilder.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/DTOBuilder.java
index ddf4a7409..ee034b6a2 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/DTOBuilder.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/DTOBuilder.java
@@ -202,6 +202,17 @@ public class DTOBuilder {
return dto;
}
+ public static FrameworkWiringDTO newFrameworkWiringDTO(Collection<BundleWiring> allWirings) {
+ DTOBuilder builder = new DTOBuilder();
+ for (BundleWiring wiring : allWirings) {
+ builder.getBundleWiringNodeDTO(wiring);
+ }
+ FrameworkWiringDTO dto = new FrameworkWiringDTO();
+ dto.wirings = new HashSet<BundleWiringDTO.NodeDTO>(builder.wiringnodes.values());
+ dto.resources = new HashSet<BundleRevisionDTO>(builder.resources.values());
+ return dto;
+ }
+
private BundleWiringDTO getBundleWiringDTO(BundleWiring wiring) {
if (wiring == null) {
return null;

Back to the top