You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Dominik Przybysz (JIRA)" <ji...@apache.org> on 2017/09/25 14:54:01 UTC

[jira] [Updated] (ARIES-1740) blueprint-maven-plugin should generate instead of for a @OsgiService List ?

     [ https://issues.apache.org/jira/browse/ARIES-1740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dominik Przybysz updated ARIES-1740:
------------------------------------
    Issue Type: New Feature  (was: Bug)

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)