[ 
https://issues.apache.org/jira/browse/FELIX-6521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17526519#comment-17526519
 ] 

Christoph Läubrich commented on FELIX-6521:
-------------------------------------------

[~tjwatson] thanks for the reference so this seems a very good approach to me 
as separate APi bundles also prevent from restarts when the implementation is 
updated. 

I wonder if that also applies to BND it currently has the follwoing in the doc 
[https://bnd.bndtools.org/chapters/170-versioning.html]

"After the bundle has been created and analyzed bnd will see if an exported 
package is eligible for import. An export is automatically imported when the 
following are true:"

I almost always disable this by {{-noimport}} so will/has this changed in BND 
that it does no longer automatically export/import packages?

> Stop exporting org.osgi.service.component packages
> --------------------------------------------------
>
>                 Key: FELIX-6521
>                 URL: https://issues.apache.org/jira/browse/FELIX-6521
>             Project: Felix
>          Issue Type: Improvement
>          Components: Declarative Services (SCR)
>            Reporter: Tom Watson
>            Priority: Major
>
> I would like to stop exporting the org.osgi.service.component packages from 
> the SCR bundle and instead only import them.  This is to make the 
> implementation more predictable when installed along side the OSGi 
> specification API bundle with GAV org.osgi:org.osgi.service.component:1.5.0 
> which only exports and does not import this package.  This will reduce the 
> confusion and possible issues with multiple exporters of that package.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to