aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominik Przybysz (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ARIES-1740) blueprint-maven-plugin should generate <reference-list> instead of <reference id="list" interface="java.util.List"/> for a @OsgiService List<Service> ?
Date Mon, 25 Sep 2017 14:57:00 GMT

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

Dominik Przybysz edited comment on ARIES-1740 at 9/25/17 2:56 PM:
------------------------------------------------------------------

Generating {{<reference-list ...>}} alone is not supported in maven-blueprint-plugin
and provided issue is change request.

Now, you can use {{@ReferenceListener}} annotation and track binding and unbinding of osgi
services and then reference-list element will be generated (available from version 1.6.0)
or write reference-list in separate blueprint file and inject it without {{@OsgiService}}
(but propably with {{@Named(...)}}).

The main problem with {{reference}} and {{reference-list}} is how to decide if you need one
service implementing java.util.List (as it is generated now) or list of services (what you
want in this issue).

Maybe we need another annotation e. g. {{@OsgiServices}} ?



was (Author: alien11689):
Generating {{<reference-list ...>}} alone is not supported in maven-blueprint-plugin
and provided issue is change request.

Now, you can use {{@ReferenceListener}} annotation and track binding and unbinding of osgi
services and then reference-list element will be generated (available from version 1.6.0)
or write reference-list in separate blueprint file and inject it without {{@OsgiService}}
(but propably with {{@Named(...)}}).

The main problem with {{reference}} and {{reference-list} is how to decide if you need one
service implementing java.util.List (as it is generated now) or list of services (what you
want in this issue).

Maybe we need another annotation e. g. {{@OsgiServices}} ?


> blueprint-maven-plugin should generate <reference-list> instead of <reference
id="list" interface="java.util.List"/> for a @OsgiService List<Service> ?
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-1740
>                 URL: https://issues.apache.org/jira/browse/ARIES-1740
>             Project: Aries
>          Issue Type: New Feature
>            Reporter: Michael Vorburger
>            Assignee: Dominik Przybysz
>
> I may be misunderstanding something, but I would have expected the {{blueprint-maven-plugin}}
(currently using its 1.4.0 in ODL) to generate {{<reference-list ...>}} instead of a
{{<reference id="list" interface="java.util.List"/>}} for a {{@Singleton}}'s bean constructor
{{@Inject @OsgiService List<Service> services}} argument?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message