X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=trunk%2Fsystem%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fcore%2FRequiredInterface.java;h=d3a4e5229483f642be14e8494736f46905f7cd9a;hb=1e6feac46f0be086aa8734e20064aec24425ff11;hp=ce8d084cdbaa2b11fcd25c65c7c194a871f64b1a;hpb=e6c5ccb2382295d11e86001266be9416dd292f2d;p=utils diff --git a/trunk/system/general/src/main/java/org/wamblee/system/core/RequiredInterface.java b/trunk/system/general/src/main/java/org/wamblee/system/core/RequiredInterface.java index ce8d084c..d3a4e522 100644 --- a/trunk/system/general/src/main/java/org/wamblee/system/core/RequiredInterface.java +++ b/trunk/system/general/src/main/java/org/wamblee/system/core/RequiredInterface.java @@ -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. @@ -40,12 +46,4 @@ public interface RequiredInterface { * @return Provider or null if not set. */ ProvidedInterface getProvider(); - - /** - * Gets the implementation of the required interface. - * @param - * @param aClass Interface type. - * @return Interface implementation or null if not known yet. - */ - T getImplementation(Class aClass); }