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) Promise
private
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,Error
private
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
Clone dependencies shared between an engine instance and its parent.
setupRegistry (registry, options) private
Parameters:
-
registry
Registry
-
options
BootOptions
unregister (fullName) public
Unregister a factory.
Overrides RegistryProxy#unregister
in order to clear any cached instances of the unregistered factory.
Parameters:
-
fullName
String
engineEmber-Engine
private
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