63988f08943ca5a89f2604cad363a9f3e713b8f3
[utils] / system / general / src / main / java / org / wamblee / system / Service.java
1 package org.wamblee.system;
2
3 /**
4  * Represents a running service.
5  *
6  * @author Erik Brakkee
7  */
8 public interface Service {
9         
10         /**
11          * Gets the ide of the service in the registry. 
12          * @return Service id. 
13          */
14         String getId(); 
15         
16         /**
17          * Gets the descriptor of the service. 
18          * @return Descriptor. 
19          */
20         ProvidedInterfaceDescriptor getDescriptor(); 
21         
22         /**
23          * Returns a reference to the running service. 
24          * @return Service. 
25          */
26         <T> T reference(Class<T> aClass);
27 }