EngineInstance

Ember.EngineInstance Class

PUBLIC

Extends: Ember.Object

Uses: RegistryProxyMixin

Uses: ContainerProxyMixin

Defined in: packages/ember-application/lib/system/engine-instance.js:17

Module: ember-application

The EngineInstance encapsulates all of the stateful aspects of a running Engine.

boot (options) Promiseprivate

Defined in packages/ember-application/lib/system/engine-instance.js:61

Initialize the Ember.EngineInstance and return a promise that resolves with the instance itself when the boot process is complete.

The primary task here is to run any registered instance initializers.

See the documentation on BootOptions for the options it takes.

Parameters:

options Object

Returns:

Promise

buildChildEngineInstance (name, options) Ember.EngineInstance,Errorprivate

Defined in packages/ember-application/lib/system/engine-instance.js:139

Build a new Ember.EngineInstance that's a child of this instance.

Engines must be registered by name with their parent engine (or application).

Parameters:

name String
the registered name of the engine.
options Object
options provided to the engine instance.

Returns:

Ember.EngineInstance,Error

cloneParentDependenciesprivate

Defined in packages/ember-application/lib/system/engine-instance.js:165

Clone dependencies shared between an engine instance and its parent.

setupRegistry (registry, options) private

Defined in packages/ember-application/lib/system/engine-instance.js:209

Parameters:

registry Registry
options BootOptions

unregister (fullName) public

Inherited from RegistryProxyMixin but overwritten in packages/ember-application/lib/system/engine-instance.js:116

Unregister a factory.

Overrides RegistryProxy#unregister in order to clear any cached instances of the unregistered factory.

Parameters:

fullName String

engineEmber-Engineprivate

Defined in packages/ember-application/lib/system/engine-instance.js:29

The base Engine for which this is an instance.

© 2017 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://emberjs.com/api/classes/Ember.EngineInstance.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部