Class ContainerDebugAdapter
public| Extends: | EmberObject |
|---|---|
| Defined in: | packages/@ember/-internals/extension-support/lib/container_debug_adapter.js:8 |
| Module: | @ember/debug |
| Since: | v1.5.0 |
import ContainerDebugAdapter from '@ember/debug/container-debug-adapter';
The ContainerDebugAdapter helps the container and resolver interface with tools that debug Ember such as the Ember Inspector for Chrome and Firefox.
This class can be extended by a custom resolver implementer to override some of the methods with library-specific code.
The methods likely to be overridden are:
canCatalogEntriesByTypecatalogEntriesByType
The adapter will need to be registered in the application's container as container-debug-adapter:main.
Example:
Application.initializer({
name: "containerDebugAdapter",
initialize(application) {
application.register('container-debug-adapter:main', require('app/container-debug-adapter'));
}
}); Methods
- addObserver
- cacheFor
- canCatalogEntriesByType
- catalogEntriesByType
- decrementProperty
- destroy
- get
- getProperties
- incrementProperty
- init
- notifyPropertyChange
- removeObserver
- set
- setProperties
- toString
- toggleProperty
- willDestroy
Properties
Events
No documented items
© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/3.25/classes/ContainerDebugAdapter