now distinguishing between provided and required service and added
[utils] / system / general / src / main / java / org / wamblee / system / ServiceDescriptor.java
index 793414c377fe0b3a0d8b7e0a9e5704350fb20e4a..f3c5cc835e5e51c5820aa20f035fe605e45eb790 100644 (file)
@@ -7,12 +7,20 @@ package org.wamblee.system;
  * NOTE: The current implemention only stores the type of the 
  * descriptor but his can be extended towards more complex rules
  * for matching services. 
+ * 
+ * Implementations must implement {@link #equals(Object)} and {@link #hashCode()}.
  */
 public interface ServiceDescriptor {
        
+       /**
+        * Symbolic name for the service as used by the subsystem.  
+        * @return Service name. 
+        */
+       String getName();
+       
        /**
         * Returns the service type. 
         * @return Service type. 
         */
-       Class getInterfaceType();
+       Class[] getInterfaceTypes();
 }