factoryTypeInjection (type, property, fullName) private
Used only via factoryInjection
.
Provides a specialized form of injection, specifically enabling all factory of one type to be injected with a reference to another object.
For example, provided each factory of type model
needed a store
. one would do the following:
let registry = new Registry(); registry.register('store:main', SomeStore); registry.factoryTypeInjection('model', 'store', 'store:main'); let store = registry.lookup('store:main'); let UserFactory = registry.lookupFactory('model:user'); UserFactory.store instanceof SomeStore; //=> true
Parameters:
-
type
String
-
property
String
-
fullName
String
Please login to continue.