Moving around a lot of files to work towards production components.
[utils] / system / general / src / main / java / org / wamblee / system / core / RequiredInterface.java
index 0fea736057bbc32849ef977004a91520b7a3f2ff..7f7fc348d411b308f6b0fe1c40cb4dd6eb7b0b55 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. 
@@ -36,16 +42,8 @@ public interface RequiredInterface {
        void setProvider(ProvidedInterface aProvider);
        
        /**
-        * Getst the provider interface. 
+        * Gets the provider interface. 
         * @return Provider or null if not set. 
         */
-       ProvidedInterface getProvider(); 
-       
-       /**
-        * Gets the implementation of the required interface. 
-        * @param <T>
-        * @param aClass Interface type. 
-        * @return Interface implementation or null if not known yet. 
-        */
-       <T> T getImplementation(Class<T> aClass); 
+       ProvidedInterface getProvider();
 }