You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Pierre De Rop (JIRA)" <ji...@apache.org> on 2018/10/17 14:11:00 UTC

[jira] [Resolved] (FELIX-5336) Add support for prototype scope services in DM4

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

Pierre De Rop resolved FELIX-5336.
----------------------------------
    Resolution: Fixed

Committed a fix in revision 1844112, in order to avoid the double instantiation of scoped services.

(test case: ScopedServiceUnexpectedlyInstantiatedTest.java)

Also, Committed a fix which auto detects if the component has an init method: when the component does not provide an init method, then the prototype instance is not created.

> Add support for prototype scope services in DM4
> -----------------------------------------------
>
>                 Key: FELIX-5336
>                 URL: https://issues.apache.org/jira/browse/FELIX-5336
>             Project: Felix
>          Issue Type: New Feature
>          Components: Dependency Manager, Dependency Manager Annotations, Dependency Manager Lambda, Dependency Manager Runtime
>            Reporter: Pierre De Rop
>            Assignee: Pierre De Rop
>            Priority: Major
>             Fix For: org.apache.felix.dependencymanager-r12
>
>         Attachments: FELIX-5336.tgz
>
>
> In the users mailing list, there is a wish to add support in DM4 for OSGi prototype scope services, which allows any service consumer to get its own instance of a given service dependency.
> See http://www.mail-archive.com/users@felix.apache.org/msg17473.html



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)