now distinguishing between provided and required service and added
[utils] / system / general / src / main / java / org / wamblee / system / Service.java
index 0db48511d90562d2a423dc22cddb19c7cf6ef144..6ee631d7902d2f77adc3f6a1a369e704f8ac8194 100644 (file)
@@ -4,11 +4,18 @@ package org.wamblee.system;
  * Represents a running service.
  */
 public interface Service {
+       
+       /**
+        * Gets the ide of the service in the registry. 
+        * @return Service id. 
+        */
+       String getId(); 
+       
        /**
         * Gets the descriptor of the service. 
         * @return Descriptor. 
         */
-       ServiceDescriptor getDescriptor(); 
+       ProvidedServiceDescriptor getDescriptor(); 
        
        /**
         * Returns a reference to the running service.