Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5424

Augment exported service metadata

    XMLWordPrintableJSON

Details

    • Patch

    Description

      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">
        </bean> 
        
      <service id="sqlDataSourceExporter" ref="mysql-ds" interface="javax.sql.DataSource">
      </service>
        
      

      And, in another file:

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

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              paolo.antinori Paolo Antinori
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: