Registry#resolve()

resolve (fullName, options) Functionprivate Defined in packages/container/lib/registry.js:218 Given a fullName return the corresponding factory. By default resolve will retrieve the factory from the registry. let registry = new Registry(); registry.register('api:twitter', Twitter); registry.resolve('api:twitter') // => Twitter Optionally the registry can be provided with a custom resolver. If provided, resolve will first provide the custom resolver the opportunity to resolve the fullNa

Registry#registrations

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

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#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#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#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#fallback

fallbackRegistryprivate Defined in packages/container/lib/registry.js:50 A backup registry for resolving registrations when no matches can be found.

Registry#knownForType()

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

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