felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paolo Antinori (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-5424) Augment exported service metadata
Date Wed, 23 Nov 2016 15:55:58 GMT
Paolo Antinori created FELIX-5424:

             Summary: 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:

osgi.service.blueprint.compname = myBeanId

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:

  <bean id="mysql-ds" class="com.mysql.jdbc.jdbc2.optional.MysqlXADataSource">
<service id="sqlDataSourceExporter" ref="mysql-ds" interface="javax.sql.DataSource">

And, in another file:

    <reference id="mysql-db" interface="javax.sql.DataSource" availability="mandatory"
component-name="mysql-ds" />

This message was sent by Atlassian JIRA

View raw message