61428399580e3caf86566445db392aed6b5cb0c4
[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 public interface Service {
7         
8         /**
9          * Gets the ide of the service in the registry. 
10          * @return Service id. 
11          */
12         String getId(); 
13         
14         /**
15          * Gets the descriptor of the service. 
16          * @return Descriptor. 
17          */
18         ServiceDescriptor getDescriptor(); 
19         
20         /**
21          * Returns a reference to the running service. 
22          * @return Service. 
23          */
24         <T> T reference(Class<T> aClass);
25 }