From 5b9a101b16476a4cbce179a326dfa99276a552e1 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 2 Aug 2018 22:21:24 +0100 Subject: [PATCH] JAL-3070 base interface for service endpoint implementation factory --- src/jalview/ws/api/JalviewServiceEndpointProviderI.java | 13 +++++++++++++ src/jalview/ws/jws2/jabaws2/Jws2Instance.java | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 src/jalview/ws/api/JalviewServiceEndpointProviderI.java 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) { -- 1.7.10.2