Registry#registrations

registrationsInheritingDictprivate Defined in packages/container/lib/registry.js:68

Registry#register()

register (fullName, factory, options) private Defined in packages/container/lib/registry.js:151 Registers a factory for later injection. Example: let registry = new Registry(); registry.register('model:user', Person, {singleton: false }); registry.register('fruit:favorite', Orange); registry.register('communication:main', Email, {singleton: false}); Parameters: fullName String factory Function options Object

Registry#optionsForType()

optionsForType (type, options) private Defined in packages/container/lib/registry.js:356 Allow registering options for all factories of a type. let registry = new Registry(); let container = registry.container(); // if all of type `connection` must not be singletons registry.optionsForType('connection', { singleton: false }); registry.register('connection:twitter', TwitterConnection); registry.register('connection:facebook', FacebookConnection); let twitter = container.lookup('connection

Registry#options()

options (fullName, options) private Defined in packages/container/lib/registry.js:397 Parameters: fullName String options Object

Registry#normalizeFullName()

normalizeFullName (fullName) Stringprivate Defined in packages/container/lib/registry.js:285 A hook to enable custom fullName normalization behaviour Parameters: fullName String Returns: String normalized fullName

Registry#normalize()

normalize (fullName) Stringprivate Defined in packages/container/lib/registry.js:303 Normalize a fullName based on the application's conventions Parameters: fullName String Returns: String normalized fullName

Registry#makeToString()

makeToString (factory, fullName) Functionprivate Defined in packages/container/lib/registry.js:317 Parameters: factory Any fullName String Returns: Function toString function

Registry#knownForType()

knownForType (type) private Defined in packages/container/lib/registry.js:663 Parameters: type String the type to iterate over

Registry#injection()

injection (factoryName, property, injectionName) private Defined in packages/container/lib/registry.js:488 Defines injection rules. These rules are used to inject dependencies onto objects when they are instantiated. Two forms of injections are possible: Injecting one fullName on another fullName Injecting one fullName on a type Example: let registry = new Registry(); let container = registry.container(); registry.register('source:main', Source); registry.register('model:user', User); regi

Registry#has()

has (fullName, options) Booleanprivate Defined in packages/container/lib/registry.js:335 Given a fullName check if the container is aware of its factory or singleton instance. Parameters: fullName String options [Object] source [String] the fullname of the request source (used for local lookups) Returns: Boolean