Hi,
a feature can have requirements and capabilities, we use the OSGi
interfaces for this. However, there is currently no easy way to match
requirements and capabilities as these interfaces do not provide a
method for it.
For example, if you want to know whether a requirement is met by the
available capabilities, that's not possible. While the OSGi specs
provide a resolver that approach is way too heavy and not really suited
for simple use cases. The resolver is used by the framework for bundle
wiring.
Therefore I propose we add a simple interface like
MatchingRequirement extends Requirement {
boolean match(Capability cap);
}
and this allows to match requirements and capabilities. As we're using
Apache Felix utils for our reqs/caps, this method is already available
there, so we don't have to implement this ourselves. Its just making it
available
WDYT?
Regards
Carsten
--
Carsten Ziegeler
Adobe Research Switzerland
[email protected]