summaryrefslogtreecommitdiffstats
path: root/jdisc_core_test/test_bundles/cert-ml-dup/src/main/java/com/yahoo/jdisc/bundle/m/CertificateM.java
diff options
context:
space:
mode:
Diffstat (limited to 'jdisc_core_test/test_bundles/cert-ml-dup/src/main/java/com/yahoo/jdisc/bundle/m/CertificateM.java')
-rw-r--r--jdisc_core_test/test_bundles/cert-ml-dup/src/main/java/com/yahoo/jdisc/bundle/m/CertificateM.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/jdisc_core_test/test_bundles/cert-ml-dup/src/main/java/com/yahoo/jdisc/bundle/m/CertificateM.java b/jdisc_core_test/test_bundles/cert-ml-dup/src/main/java/com/yahoo/jdisc/bundle/m/CertificateM.java
new file mode 100644
index 00000000000..131c9e41a1e
--- /dev/null
+++ b/jdisc_core_test/test_bundles/cert-ml-dup/src/main/java/com/yahoo/jdisc/bundle/m/CertificateM.java
@@ -0,0 +1,18 @@
+// 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.m;
+
+import java.util.concurrent.Callable;
+
+/**
+ * @author Simon Thoresen Hult
+ */
+public class CertificateM implements Callable<Integer> {
+
+ @Override
+ @SuppressWarnings({ "unchecked" })
+ public Integer call() throws Exception {
+ Class<?> certClass = Class.forName("com.yahoo.jdisc.bundle.l.CertificateL");
+ Callable<Integer> cert = (Callable<Integer>)certClass.getDeclaredConstructor().newInstance();
+ return cert.call();
+ }
+}