stbischof commented on pull request #82:
URL: https://github.com/apache/johnzon/pull/82#issuecomment-1070525740


   My goal was to keep it simple for all non-osgi developers.
   
   To only work with 2 Annotations (@ServiceProvider, @ServiceConsumer) and get 
everything else for free.
   This Annotations only generate Entrys for the Manifest.
   
   ```
   Provide-Capability                      
osgi.service;objectClass:List<String>="javax.json.spi.JsonProvider";service.vendor="org.apache.johnzon";effective:=active
                                           
osgi.serviceloader;osgi.serviceloader="javax.json.spi.JsonProvider";register:="org.apache.johnzon.core.JsonProviderImpl";service.vendor="org.apache.johnzon"
   Require-Capability                      
osgi.contract;osgi.contract=JavaJSONP;filter:="(&(osgi.contract=JavaJSONP)(version=1.1.0))"
                                           
osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
                                           
osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)(version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional
                                           
osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.registrar)(version>=1.0.0)(!(version>=2.0.0)))"
                                           
osgi.serviceloader;filter:="(osgi.serviceloader=org.apache.johnzon.core.BufferStrategy)";osgi.serviceloader="org.apache.johnzon.core.BufferStrategy";resolution:=optional
                                           
osgi.serviceloader;filter:="(osgi.serviceloader=org.apache.johnzon.core.spi.JsonPointerFactory)";osgi.serviceloader="org.apache.johnzon.core.spi.JsonPointerFactory";resolution:=optional
   
   ```
   This isn't something, someone should care by hand. ( also not in the 
felix-plugin).
   
   And at the long term. I think that the `bnd-maven-plugin` replaces 
`felix-plugin`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@johnzon.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to