felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-5424) Augment exported service metadata
Date Wed, 23 Nov 2016 15:57:59 GMT

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

ASF GitHub Bot commented on FELIX-5424:

GitHub user paoloantinori opened a pull request:


    FELIX-5424 - Maven plugin - Add metadata for exported services


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/paoloantinori/felix FELIX-5424

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #76
commit e7bcbc3b6fe48a70ec5d576f09d2d2c3d8cb2040
Author: Paolo Antinori <pantinor@redhat.com>
Date:   2016-11-23T15:56:39Z

    FELIX-5424 - Maven plugin - Add metadata for exported services


> Augment exported service metadata
> ---------------------------------
>                 Key: FELIX-5424
>                 URL: https://issues.apache.org/jira/browse/FELIX-5424
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven Bundle Plugin
>            Reporter: Paolo Antinori
> When Apache Aries Blueprint installs a service that points to a {{[bean]}} node that
has its {{id}} attribute specified, it adds an additional metadata entry to the service registry:
> {code}
> osgi.service.blueprint.compname = myBeanId
> {code}
> That information is not automatically added to the Headers section of a generated bundle
though, thus preventing some kind of validation offline.
> The proposed patch adds the additional metadata at build time.
> This is a snippet of a use case that requires this:
> {code:xml}
>   <bean id="mysql-ds" class="com.mysql.jdbc.jdbc2.optional.MysqlXADataSource">
>   </bean> 
> <service id="sqlDataSourceExporter" ref="mysql-ds" interface="javax.sql.DataSource">
> </service>
> {code}
> And, in another file:
> {code:xml}
>     <reference id="mysql-db" interface="javax.sql.DataSource" availability="mandatory"
component-name="mysql-ds" />
> {code}

This message was sent by Atlassian JIRA

View raw message