felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-4950) [DS][RFC-190] Within a component instance for each reference to the same service the same object needs to be injected
Date Sun, 05 Jul 2015 23:54:04 GMT
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)

Mime
View raw message