@@ -47,18 +47,21 @@ Registry.prototype = {
47
47
/**
48
48
A backup registry for resolving registrations when no matches can be found.
49
49
50
+ @private
50
51
@property fallback
51
52
@type Registry
52
53
*/
53
54
fallback : null ,
54
55
55
56
/**
57
+ @private
56
58
@property resolver
57
59
@type function
58
60
*/
59
61
resolver : null ,
60
62
61
63
/**
64
+ @private
62
65
@property registrations
63
66
@type InheritingDict
64
67
*/
@@ -143,6 +146,7 @@ Registry.prototype = {
143
146
/**
144
147
Creates a container based on this registry.
145
148
149
+ @private
146
150
@method container
147
151
@param {Object } options
148
152
@return {Container } created container
@@ -164,6 +168,7 @@ Registry.prototype = {
164
168
2.0TODO: Remove this method. The bookkeeping is only needed to support
165
169
deprecated behavior.
166
170
171
+ @private
167
172
@param {Container } newly created container
168
173
*/
169
174
registerContainer ( container ) {
@@ -208,6 +213,7 @@ Registry.prototype = {
208
213
registry.register('communication:main', Email, {singleton: false});
209
214
```
210
215
216
+ @private
211
217
@method register
212
218
@param {String } fullName
213
219
@param {Function } factory
@@ -244,6 +250,7 @@ Registry.prototype = {
244
250
registry.resolve('model:user') === undefined //=> true
245
251
```
246
252
253
+ @private
247
254
@method unregister
248
255
@param {String } fullName
249
256
*/
@@ -286,6 +293,7 @@ Registry.prototype = {
286
293
registry.resolve('api:twitter') // => Twitter
287
294
```
288
295
296
+ @private
289
297
@method resolve
290
298
@param {String } fullName
291
299
@return {Function } fullName's factory
@@ -307,6 +315,7 @@ Registry.prototype = {
307
315
class name (including namespace) where Ember's resolver expects
308
316
to find the `fullName`.
309
317
318
+ @private
310
319
@method describe
311
320
@param {String } fullName
312
321
@return {string } described fullName
@@ -318,6 +327,7 @@ Registry.prototype = {
318
327
/**
319
328
A hook to enable custom fullName normalization behaviour
320
329
330
+ @private
321
331
@method normalizeFullName
322
332
@param {String } fullName
323
333
@return {string } normalized fullName
@@ -329,6 +339,7 @@ Registry.prototype = {
329
339
/**
330
340
normalize a fullName based on the applications conventions
331
341
342
+ @private
332
343
@method normalize
333
344
@param {String } fullName
334
345
@return {string } normalized fullName
@@ -342,6 +353,7 @@ Registry.prototype = {
342
353
/**
343
354
@method makeToString
344
355
356
+ @private
345
357
@param {any } factory
346
358
@param {string } fullName
347
359
@return {function } toString function
@@ -354,6 +366,7 @@ Registry.prototype = {
354
366
Given a fullName check if the container is aware of its factory
355
367
or singleton instance.
356
368
369
+ @private
357
370
@method has
358
371
@param {String } fullName
359
372
@return {Boolean }
@@ -387,6 +400,7 @@ Registry.prototype = {
387
400
facebook === facebook2; // => false
388
401
```
389
402
403
+ @private
390
404
@method optionsForType
391
405
@param {String } type
392
406
@param {Object } options
@@ -404,6 +418,7 @@ Registry.prototype = {
404
418
} ,
405
419
406
420
/**
421
+ @private
407
422
@method options
408
423
@param {String } fullName
409
424
@param {Object } options
@@ -540,6 +555,7 @@ Registry.prototype = {
540
555
user.source === post.source; //=> true
541
556
```
542
557
558
+ @private
543
559
@method injection
544
560
@param {String } factoryName
545
561
@param {String } property
@@ -650,6 +666,7 @@ Registry.prototype = {
650
666
UserFactory.store === PostFactory.store; //=> true
651
667
```
652
668
669
+ @private
653
670
@method factoryInjection
654
671
@param {String } factoryName
655
672
@param {String } property
0 commit comments