Carsten Ziegeler created FELIX-4950:
---------------------------------------
Summary: [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)