JAL-3954 create primitive gui handler for search service
[jalview.git] / src / jalview / ws2 / client / api / WebServiceProviderI.java
1 package jalview.ws2.client.api;
2
3 import java.util.List;
4
5 import jalview.ws2.actions.api.ActionI;
6 import jalview.ws2.api.WebService;
7
8 /*
9  * A view of services that allows to retrieve the services by the type
10  * of action.
11  */
12 public interface WebServiceProviderI
13 {
14   /**
15    * Retrieve list of all web services.
16    * 
17    * @return all web services
18    */
19   public List<WebService<?>> getServices();
20
21   /**
22    * Retrieve services by their action type.
23    * 
24    * @param type
25    *          action type
26    * @return list of services
27    */
28   public <A extends ActionI<?>> List<WebService<A>> getServices(Class<A> type);
29 }