felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-4412) Add Provide-Capability for declarative services bundle
Date Mon, 16 Mar 2015 17:19:38 GMT

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

David Jencks commented on FELIX-4412:
-------------------------------------

I attempted to implement the wiring check but could only figure out how to test that the wire
exists when it should.  I don't see a reasonable way to write a test that shows we don't extend
a bundle wired to another extender.

> Add Provide-Capability for declarative services bundle
> ------------------------------------------------------
>
>                 Key: FELIX-4412
>                 URL: https://issues.apache.org/jira/browse/FELIX-4412
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR), Specification compliance
>    Affects Versions: scr-1.8.0
>            Reporter: Alex Blewitt
>            Assignee: David Jencks
>            Priority: Minor
>             Fix For: scr-2.0.0
>
>
> To allow bundles to declare that they need declarative services, a Provide-Capability
should be defined on the DS bundle such that clients can depend on it, for example:
> Provide-Capability: osgi.extender;osgi.extender="osgi.service.component";version:=1.1.0
> This would allow clients to require that there be a Declarative Services bundle without
actually declaring a package dependency:
> Require-Capability: osgi.extender;filter:="(&(osgi.extender=osgi.service.component")(version>1.0.0))"
> The name of the declarative services component isn't well defined but osgi.service.component
or osgi.declarative.services might be used.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message