@@ -89,16 +89,16 @@ In the example above, "container 2" contains a controller "myController" and the
89
89
Without the * delegate lookup* feature, when requesting the "myController" instance to container 2, it would take
90
90
in charge the instanciation of both entries.
91
91
92
- However, using the * delegate lookup* feature, here is what happens when we ask the composite controller for the
92
+ However, using the * delegate lookup* feature, here is what happens when we ask the composite container for the
93
93
"myController" instance:
94
94
95
- - The composite controller asks container 1 if if contains the "myController" instance. The answer is no.
96
- - The composite controller asks container 2 if if contains the "myController" instance. The answer is yes.
97
- - The composite controller performs a ` get ` call on container 2 for the "myController" instance.
95
+ - The composite container asks container 1 if if contains the "myController" instance. The answer is no.
96
+ - The composite container asks container 2 if if contains the "myController" instance. The answer is yes.
97
+ - The composite container performs a ` get ` call on container 2 for the "myController" instance.
98
98
- Container 2 sees that "myController" has a dependency on "entityManager".
99
- - Container 2 delegates the lookup of "entityManager" to the composite controller .
100
- - The composite controller asks container 1 if if contains the "entityManager" instance. The answer is yes.
101
- - The composite controller performs a ` get ` call on container 1 for the "entityManager" instance.
99
+ - Container 2 delegates the lookup of "entityManager" to the composite container .
100
+ - The composite container asks container 1 if if contains the "entityManager" instance. The answer is yes.
101
+ - The composite container performs a ` get ` call on container 1 for the "entityManager" instance.
102
102
103
103
In the end, we get a controller instanciated by container 2 that references an entityManager instanciated
104
104
by container 1.
0 commit comments