[
https://issues.apache.org/jira/browse/ARIES-1442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14985303#comment-14985303
]
John Ross commented on ARIES-1442:
----------------------------------
Features share everything, so there's no way to hide the osgi.identity
capabilities. In the implementation, this is accomplished by having features
use the region of their scoped subsystem. They have no region of their own
capable of not "exporting" anything. The sharing policy of the scoped subsystem
as configured in the region can still hide things.
However, I suspect by "export" you mean that the osgi.identity capabilities of
feature bundles show up as capabilities of the feature via the getCapabilities
method. I think this is wrong and that osgi.identity capabilities must be unary
and unique per resource.
> Subsystem impersonates bundles that are a constituent through sharing the
> osgi.identity capability
> --------------------------------------------------------------------------------------------------
>
> Key: ARIES-1442
> URL: https://issues.apache.org/jira/browse/ARIES-1442
> Project: Aries
> Issue Type: Bug
> Components: Subsystem
> Affects Versions: subsystem-2.0.4
> Environment: karaf pax-exam
> Reporter: Bas
> Attachments: CapabilitiesDifferOnRestart.java.patch
>
>
> Feature subsystems should export all capabilities of its constituents. The
> osgi.identity capability is also exported but I doubt it is supposed to.
> It might cause problems when using osgi.identity in the preferred-provider
> header.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)