Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
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
- links to