You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2015/08/11 07:09:56 UTC
[jira] [Closed] (FELIX-4950) [DS][RFC-190] Within a component
instance for each reference to the same service the same object needs to be
injected
[ https://issues.apache.org/jira/browse/FELIX-4950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler closed FELIX-4950.
-----------------------------------
> [DS][RFC-190] Within a component instance for each reference to the same service the same object needs to be injected
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: FELIX-4950
> URL: https://issues.apache.org/jira/browse/FELIX-4950
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Fix For: scr-2.0.0
>
>
> When using reference scope prototype (or prototype_required), when a component instance references the same service multiple time, each reference must use the same service instance rather than a unique instance.
> See DS spec section 122.3.5:
> prototype:
> That is, for a given bound service, each component instance may use a distinct service object but within a component instance all references to the bound service will use the same service object.
> prototype_required:
> That is, for a given bound service, each component instance will use a distinct service object but within a component instance all references to the bound service will use the same service object.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)