Implemented optinality of interfaces.
[utils] / system / general / src / main / java / org / wamblee / system / core / RequiredInterface.java
index ce8d084cdbaa2b11fcd25c65c7c194a871f64b1a..bcd2635d6cdc6e19742edd2789d9a0c6dcbd0d7b 100644 (file)
@@ -20,7 +20,13 @@ public interface RequiredInterface {
        /**
         * Name for the interface. 
         */
-       public String getName(); 
+       String getName();
+       
+       /**
+        * @return True iff the required interface is optional. 
+        */
+       boolean isOptional(); 
+       
        
        /**
         * Checks if the service is provided by a given provided interface.