X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=trunk%2Fsystem%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fcore%2FRequiredInterface.java;h=4dd77fc7dad510dcbc062eaab20a402008de627f;hb=51ee1c2eabf2be7a67043498a3a9ca286b7b2c17;hp=bcd2635d6cdc6e19742edd2789d9a0c6dcbd0d7b;hpb=9dc3759548b277bdf34f1335ce540588aae8ea89;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 bcd2635d..4dd77fc7 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 @@ -15,12 +15,7 @@ */ package org.wamblee.system.core; -public interface RequiredInterface { - - /** - * Name for the interface. - */ - String getName(); +public interface RequiredInterface extends NamedInterface { /** * @return True iff the required interface is optional. @@ -45,13 +40,11 @@ public interface RequiredInterface { * Gets the provider interface. * @return Provider or null if not set. */ - ProvidedInterface getProvider(); + ProvidedInterface getProvider(); /** - * Gets the implementation of the required interface. - * @param - * @param aClass Interface type. - * @return Interface implementation or null if not known yet. + * Determines if the requirements of the current interface are at least those + * of the given required interface. */ - T getImplementation(Class aClass); + boolean covers(RequiredInterface aInterface); }