Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2008-12-19 22:41:57 +0000
committerThomas Watson2008-12-19 22:41:57 +0000
commitb1ce29de4ecdd85bd20b6d725d69c20697fa2511 (patch)
tree671241295cccaadf6c31b9c34415cf438db04510 /bundles/org.eclipse.osgi.tests/bundles_src/test.link.a
parentc0bf408b216d2511900a0e48b4185d50fb6017e2 (diff)
downloadrt.equinox.framework-b1ce29de4ecdd85bd20b6d725d69c20697fa2511.tar.gz
rt.equinox.framework-b1ce29de4ecdd85bd20b6d725d69c20697fa2511.tar.xz
rt.equinox.framework-b1ce29de4ecdd85bd20b6d725d69c20697fa2511.zip
Bug 254021 Implement new LinkBundleFactory service (rfc 138)
Diffstat (limited to 'bundles/org.eclipse.osgi.tests/bundles_src/test.link.a')
-rw-r--r--bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/META-INF/MANIFEST.MF8
-rw-r--r--bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/test/link/a/SomeAPI.java24
-rw-r--r--bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/test/link/a/params/AParam.java17
-rw-r--r--bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/test/link/a/resource.txt1
4 files changed, 50 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/META-INF/MANIFEST.MF b/bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..54ff1de68
--- /dev/null
+++ b/bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/META-INF/MANIFEST.MF
@@ -0,0 +1,8 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: test.link.a
+Bundle-SymbolicName: test.link.a
+Bundle-Version: 1.0.0
+Export-Package: test.link.a; attr1="value1"; uses:="org.osgi.framework, test.link.a.params",
+ test.link.a.params; attr2="value2"
+Import-Package: org.osgi.framework
diff --git a/bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/test/link/a/SomeAPI.java b/bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/test/link/a/SomeAPI.java
new file mode 100644
index 000000000..9a2483c6b
--- /dev/null
+++ b/bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/test/link/a/SomeAPI.java
@@ -0,0 +1,24 @@
+/*******************************************************************************
+ * Copyright (c) 2008 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package test.link.a;
+
+import org.osgi.framework.Bundle;
+import test.link.a.params.AParam;
+
+public class SomeAPI {
+ public Long getBundleID(Bundle bundle) {
+ return new Long(bundle.getBundleId());
+ }
+
+ public String getString(AParam arg0) {
+ return arg0.toString();
+ }
+}
diff --git a/bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/test/link/a/params/AParam.java b/bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/test/link/a/params/AParam.java
new file mode 100644
index 000000000..56d2534e2
--- /dev/null
+++ b/bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/test/link/a/params/AParam.java
@@ -0,0 +1,17 @@
+/*******************************************************************************
+ * Copyright (c) 2008 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package test.link.a.params;
+
+public class AParam {
+ public String toString() {
+ return "AParam"; //$NON-NLS-1$
+ }
+}
diff --git a/bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/test/link/a/resource.txt b/bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/test/link/a/resource.txt
new file mode 100644
index 000000000..2eec599a1
--- /dev/null
+++ b/bundles/org.eclipse.osgi.tests/bundles_src/test.link.a/test/link/a/resource.txt
@@ -0,0 +1 @@
+Test content

Back to the top