RegistryProxyMixin#registerOption()

registerOption (fullName, optionName, options) public Defined in packages/ember-runtime/lib/mixins/registry_proxy.js:120 Register an option for a particular factory. Parameters: fullName String optionName String options Object

RegistryProxyMixin#registeredOptionsForType()

registeredOptionsForType (type) Objectpublic Defined in packages/ember-runtime/lib/mixins/registry_proxy.js:193 Return the registered options for all factories of a type. Parameters: type String Returns: Object options

RegistryProxyMixin#registerOptionsForType()

registerOptionsForType (type, options) public Defined in packages/ember-runtime/lib/mixins/registry_proxy.js:162 Allow registering options for all factories of a type. let App = Ember.Application.create(); let appInstance = App.buildInstance(); // if all of type `connection` must not be singletons appInstance.optionsForType('connection', { singleton: false }); appInstance.register('connection:twitter', TwitterConnection); appInstance.register('connection:facebook', FacebookConnection); l

RegistryProxyMixin

RegistryProxyMixin Class PRIVATE Defined in: packages/ember-runtime/lib/mixins/registry_proxy.js:9 Module: ember-runtime RegistryProxyMixin is used to provide public access to specific registry functionality.

RegistryProxyMixin#register()

register (fullName, factory, options) public Defined in packages/ember-runtime/lib/mixins/registry_proxy.js:29 Registers a factory that can be used for dependency injection (with inject) or for service lookup. Each factory is registered with a full name including two parts: type:name. A simple example: let App = Ember.Application.create(); App.Orange = Ember.Object.extend(); App.register('fruit:favorite', App.Orange); Ember will resolve factories from the App namespace automatically. For

RegistryProxyMixin#inject()

inject (factoryNameOrType, property, injectionName) public Defined in packages/ember-runtime/lib/mixins/registry_proxy.js:203 Define a dependency injection onto a specific factory or all factories of a type. When Ember instantiates a controller, view, or other framework component it can attach a dependency to that component. This is often used to provide services to a set of framework components. An example of providing a session object to all controllers: let App = Ember.Application.create

RegistryProxyMixin#registeredOption()

registeredOption (fullName, optionName) Objectpublic Defined in packages/ember-runtime/lib/mixins/registry_proxy.js:131 Return a specific registered option for a particular factory. Parameters: fullName String optionName String Returns: Object options

RegistryProxyMixin#hasRegistration()

hasRegistration (fullName) Booleanpublic Defined in packages/ember-runtime/lib/mixins/registry_proxy.js:110 Check if a factory is registered. Parameters: fullName String Returns: Boolean

Registry#_resolveCache

_resolveCacheInheritingDictprivate Defined in packages/container/lib/registry.js:115

Registry#_typeOptions

_typeOptionsInheritingDictprivate Defined in packages/container/lib/registry.js:131