I am currently working on a little framework that offers components with
a common service interface but different property value per component.
LIke:
https://github.com/cschneider/reactive-components/blob/master/rcomp-mqtt/src/main/java/org/apache/karaf/rcomp/mqtt/MqttComponent.java
@Component(property="name=mqtt")
A user of the mqtt component will use a filter like this:
@Reference(target="(name=mqtt)")
Bnd creates a requirement like this:
osgi.service;filter:="(objectClass=org.apache.karaf.rcomp.api.RComponent)";effective:=active
The requirement does not include the filter.
It would be nice if bndtools or karaf later could help me by auto
picking or recommending the mqtt component bundle when the user bundle
is required.
Can I somehow make bnd create a requirement including a filter? .. or
alternatively is there another easy to use way how a specific provider
can announce itself and a user bundle can specify the requirement for a
specific provider?
I think this same problem applies to Apache Camel. When a user bundle
uses a certain camel component then the resolver currently does not help
with this and the bundle fails at runtime.
Christian
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev