aboutsummaryrefslogtreecommitdiffstats
path: root/jdisc_core_test/test_bundles/cert-l1-dup/src/main/java
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2019-10-05 00:06:55 +0200
committergjoranv <gv@verizonmedia.com>2019-10-16 11:41:33 +0200
commitaf771506b97cf996dd7c25053c07e1cc8f9eba99 (patch)
treee77bdc57d861ee747f4211e638a163f394472238 /jdisc_core_test/test_bundles/cert-l1-dup/src/main/java
parent685704ab391abc6efdb9577c24bdf7ed48333f8e (diff)
Allow duplicate bsn+version for a given set of bundles.
- Set 'org.osgi.framework.bsnversion' to 'managed' - Add bundle collision/event hook to handle duplicates and their lifecycle. - Add unit tests for duplicate bundles. o Add bundle 'l1-dup' which is a duplicate of the existing 'l1', but returns a different value from its implemented class. o Add bundle 'ml-dup' that is exactly the same as 'ml'
Diffstat (limited to 'jdisc_core_test/test_bundles/cert-l1-dup/src/main/java')
-rw-r--r--jdisc_core_test/test_bundles/cert-l1-dup/src/main/java/com/yahoo/jdisc/bundle/l/CertificateL.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/jdisc_core_test/test_bundles/cert-l1-dup/src/main/java/com/yahoo/jdisc/bundle/l/CertificateL.java b/jdisc_core_test/test_bundles/cert-l1-dup/src/main/java/com/yahoo/jdisc/bundle/l/CertificateL.java
new file mode 100644
index 00000000000..2060686ee4f
--- /dev/null
+++ b/jdisc_core_test/test_bundles/cert-l1-dup/src/main/java/com/yahoo/jdisc/bundle/l/CertificateL.java
@@ -0,0 +1,15 @@
+// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.jdisc.bundle.l;
+
+import java.util.concurrent.Callable;
+
+/**
+ * @author Simon Thoresen Hult
+ */
+public class CertificateL implements Callable<Integer> {
+
+ @Override
+ public Integer call() throws Exception {
+ return 11;
+ }
+}