From: Jim Procter Date: Thu, 2 Aug 2018 21:21:24 +0000 (+0100) Subject: JAL-3070 base interface for service endpoint implementation factory X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5b9a101b16476a4cbce179a326dfa99276a552e1;p=jalview.git JAL-3070 base interface for service endpoint implementation factory --- diff --git a/src/jalview/ws/api/JalviewServiceEndpointProviderI.java b/src/jalview/ws/api/JalviewServiceEndpointProviderI.java new file mode 100644 index 0000000..b9b5109 --- /dev/null +++ b/src/jalview/ws/api/JalviewServiceEndpointProviderI.java @@ -0,0 +1,13 @@ +package jalview.ws.api; + +public interface JalviewServiceEndpointProviderI +{ + + /** + * + * @return endpoint instance implementing one or more jalview.ws.api + * interfaces + */ + Object getEndpoint(); + +} diff --git a/src/jalview/ws/jws2/jabaws2/Jws2Instance.java b/src/jalview/ws/jws2/jabaws2/Jws2Instance.java index 01c13a8..6097bdf 100644 --- a/src/jalview/ws/jws2/jabaws2/Jws2Instance.java +++ b/src/jalview/ws/jws2/jabaws2/Jws2Instance.java @@ -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) {