JAL-3070 base interface for service endpoint implementation factory
authorJim Procter <jprocter@issues.jalview.org>
Thu, 2 Aug 2018 21:21:24 +0000 (22:21 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 2 Aug 2018 21:21:24 +0000 (22:21 +0100)
src/jalview/ws/api/JalviewServiceEndpointProviderI.java [new file with mode: 0644]
src/jalview/ws/jws2/jabaws2/Jws2Instance.java

diff --git a/src/jalview/ws/api/JalviewServiceEndpointProviderI.java b/src/jalview/ws/api/JalviewServiceEndpointProviderI.java
new file mode 100644 (file)
index 0000000..b9b5109
--- /dev/null
@@ -0,0 +1,13 @@
+package jalview.ws.api;
+
+public interface JalviewServiceEndpointProviderI
+{
+
+  /**
+   * 
+   * @return endpoint instance implementing one or more jalview.ws.api
+   *         interfaces
+   */
+  Object getEndpoint();
+
+}
index 01c13a8..6097bdf 100644 (file)
@@ -23,6 +23,7 @@ package jalview.ws.jws2.jabaws2;
 import jalview.gui.AlignFrame;
 import jalview.gui.Desktop;
 import jalview.util.MessageManager;
+import jalview.ws.api.JalviewServiceEndpointProviderI;
 import jalview.ws.api.ServiceWithParameters;
 import jalview.ws.jws2.JabaParamStore;
 import jalview.ws.jws2.MsaWSClient;
@@ -41,6 +42,7 @@ import compbio.metadata.PresetManager;
 import compbio.metadata.RunnerConfig;
 
 public class Jws2Instance extends ServiceWithParameters
+        implements JalviewServiceEndpointProviderI
 {
 
   public JABAService service;
@@ -245,6 +247,7 @@ public class Jws2Instance extends ServiceWithParameters
    * 
    * @return
    */
+  @Override
   public Object getEndpoint()
   {
     if (aaui!=null) {