25 * An interface for accessing connection type extensions from their identifier |
25 * An interface for accessing connection type extensions from their identifier |
26 * and compatible services from connection types |
26 * and compatible services from connection types |
27 */ |
27 */ |
28 public interface IConnectionTypeProvider { |
28 public interface IConnectionTypeProvider { |
29 |
29 |
30 IConnectionType getConnectionType(String identifier); |
30 /** |
|
31 * Returns IConnectionType corresponding to the id or null |
|
32 * @param id String |
|
33 * @return IConnectionType |
|
34 */ |
|
35 IConnectionType getConnectionType(String id); |
31 |
36 |
|
37 /** |
|
38 * Returns all the known connection types |
|
39 * @return Collection<IConnectionType> |
|
40 */ |
32 Collection<IConnectionType> getConnectionTypes(); |
41 Collection<IConnectionType> getConnectionTypes(); |
33 |
42 |
|
43 /** |
|
44 * Returns a collection of IService that are supported over a connection type |
|
45 * @param connectionType IConnectionType |
|
46 * @return Collection<IService> |
|
47 */ |
34 Collection<IService> getCompatibleServices(IConnectionType connectionType); |
48 Collection<IService> getCompatibleServices(IConnectionType connectionType); |
35 |
49 |
|
50 /** |
|
51 * Returns IService corresponding to the id or null |
|
52 * @param id String |
|
53 * @return IService |
|
54 */ |
36 IService findServiceByID(String id); |
55 IService findServiceByID(String id); |
37 |
56 |
|
57 /** |
|
58 * Returns a collection of connection type ids that support a service |
|
59 * @param service IService |
|
60 * @return Collection<String> |
|
61 */ |
38 Collection<String> getCompatibleConnectionTypeIds(IService service); |
62 Collection<String> getCompatibleConnectionTypeIds(IService service); |
39 } |
63 } |