X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fcore%2FRequiredInterface.java;h=4dd77fc7dad510dcbc062eaab20a402008de627f;hb=1bfc42afcea288a918e8befe65fd8f87b99ba2e4;hp=7f7fc348d411b308f6b0fe1c40cb4dd6eb7b0b55;hpb=ffa7b72359ee0587112cf94b10bf2d3acdb9d80d;p=utils diff --git a/system/general/src/main/java/org/wamblee/system/core/RequiredInterface.java b/system/general/src/main/java/org/wamblee/system/core/RequiredInterface.java index 7f7fc348..4dd77fc7 100644 --- a/system/general/src/main/java/org/wamblee/system/core/RequiredInterface.java +++ b/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. @@ -46,4 +41,10 @@ public interface RequiredInterface { * @return Provider or null if not set. */ ProvidedInterface getProvider(); + + /** + * Determines if the requirements of the current interface are at least those + * of the given required interface. + */ + boolean covers(RequiredInterface aInterface); }