Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2016-02-18 20:53:43 +0000
committerThomas Watson2017-06-16 12:38:08 +0000
commitf31b2c1056822bdc2e77b22f558a087943f7a22d (patch)
treeeb96616921ad590f975a4d17077c2a71a64cd2bc /bundles/org.eclipse.osgi/osgi/src/org
parent1bc1071713d4d94f1c7200fe1a90f806256b7554 (diff)
downloadrt.equinox.framework-f31b2c1056822bdc2e77b22f558a087943f7a22d.tar.gz
rt.equinox.framework-f31b2c1056822bdc2e77b22f558a087943f7a22d.tar.xz
rt.equinox.framework-f31b2c1056822bdc2e77b22f558a087943f7a22d.zip
Bug 487688 - [osgi R7] Implement FrameworkWiringDTO
Diffstat (limited to 'bundles/org.eclipse.osgi/osgi/src/org')
-rwxr-xr-xbundles/org.eclipse.osgi/osgi/src/org/osgi/framework/wiring/dto/FrameworkWiringDTO.java48
-rw-r--r--bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/wiring/dto/package-info.java10
-rw-r--r--bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/wiring/dto/packageinfo2
3 files changed, 53 insertions, 7 deletions
diff --git a/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/wiring/dto/FrameworkWiringDTO.java b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/wiring/dto/FrameworkWiringDTO.java
new file mode 100755
index 000000000..50df41dd5
--- /dev/null
+++ b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/wiring/dto/FrameworkWiringDTO.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) OSGi Alliance (2012, 2014). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.osgi.framework.wiring.dto;
+
+import java.util.Set;
+
+import org.osgi.dto.DTO;
+
+/**
+ * Data Transfer Object for the wiring graph of the framework.
+ * <p>
+ * The system bundle can be adapted to provide the {@code FrameworkWiringDTO}.
+ * Only the system bundle can be adapted to a {@code FrameworkWiringDTO} object
+ *
+ * @author $Id$
+ * @NotThreadSafe
+ * @since 1.3
+ */
+public class FrameworkWiringDTO extends DTO {
+ /**
+ * The set of wiring nodes referenced by the wiring graph of the framework.
+ * <p>
+ * All wiring nodes referenced by wiring node identifiers in the wiring
+ * graph are contained in this set.
+ */
+ public Set<BundleWiringDTO.NodeDTO> wirings;
+ /**
+ * The set of resources referenced by the wiring graph of the framework.
+ * <p>
+ * All resources referenced by resource identifiers in the wiring graph are
+ * contained in this set.
+ */
+ public Set<BundleRevisionDTO> resources;
+}
diff --git a/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/wiring/dto/package-info.java b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/wiring/dto/package-info.java
index 691bcdcde..8fb513b06 100644
--- a/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/wiring/dto/package-info.java
+++ b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/wiring/dto/package-info.java
@@ -15,27 +15,25 @@
*/
/**
- * OSGi Data Transfer Object Framework Wiring Package Version 1.2.
- *
+ * OSGi Data Transfer Object Framework Wiring Package Version 1.3.
* <p>
* Bundles wishing to use this package must list the package in the
* Import-Package header of the bundle's manifest. This package has two types of
* users: the consumers that use the API in this package and the providers that
* implement the API in this package.
- *
* <p>
* Example import for consumers using the API in this package:
* <p>
- * {@code Import-Package: org.osgi.framework.wiring.dto; version="[1.2,2.0)"}
+ * {@code Import-Package: org.osgi.framework.wiring.dto; version="[1.3,2.0)"}
* <p>
* Example import for providers implementing the API in this package:
* <p>
- * {@code Import-Package: org.osgi.framework.wiring.dto; version="[1.2,1.3)"}
+ * {@code Import-Package: org.osgi.framework.wiring.dto; version="[1.3,1.4)"}
*
* @author $Id$
*/
-@Version("1.2")
+@Version("1.3")
package org.osgi.framework.wiring.dto;
import org.osgi.annotation.versioning.Version;
diff --git a/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/wiring/dto/packageinfo b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/wiring/dto/packageinfo
index ef7df68cb..0117a56c1 100644
--- a/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/wiring/dto/packageinfo
+++ b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/wiring/dto/packageinfo
@@ -1 +1 @@
-version 1.2
+version 1.3

Back to the top