OSGi Capabilities are defined in the OSGi spec in chapter 3-3 (page 38 of the OSGi core spec) As the feature service uses the OSGi resolver the same applies to features.
regards, Achim 2015-12-04 19:00 GMT+01:00 j3rem1e <[email protected]>: > Hello, > > I am playing with Karaf 4 and the new feature resolver, and i have some > question about requirements and capabilities. At first, where can i found a > documentation of osgi req/capability syntax ? for now, i have only the > javadoc on org.osgi.resource .. > > I have a feature A who need a service S who should be a singleton. S is > provided by the feature X or Y. For example, gemini-blueprint and > aries-blueprint provide the capability blueprint, but only one provider > shoud be present. Can Karaf handle scenario like : > - If i install feature A, he choose automatically X or Y ? > - If X is installed and i choose to install Y, then X is uninstalled ? > > Thanks ! > > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Features-Capability-Requirement-tp4044126.html > Sent from the Karaf - User mailing list archive at Nabble.com. > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master
