java - Why does bnd figures my bundle REQUIRES optional services (*, 0..n, ReferenceCardinality.MULTIPLE)? -
my bundle defines interface, , component uses interface implementations call them (if exists...).
a analogy logservice; if 1 (or more) exists, calls them message.
here's ds declaration:
@reference(cardinality= referencecardinality.multiple, policy = referencepolicy.dynamic, service = itestresultsparserservice.class) public void bindtestresultsparser(itestresultsparserservice parser) { testresultsparserservices.add(parser); } public void unbindtestresultsparser(itestresultsparserservice parser) { testresultsparserservices.remove(parser); }
so expect bundle able deploy or without services implementations.
however, here's eclipses gives me:
why? isn't requirement @ all! it's optional.
i found this ticket seems talk issue, not clear why it's been closed. added bnd.bnd, stated in ticket:
-resolve.effective: active;skip:="osgi.service"
since bug has been fixed, , not question possible answer, i'm closing it.
Comments
Post a Comment