Ember.ContainerDebugAdapter Class packages/ember-extension-support/lib/container_debug_adapter.js:16

The ContainerDebugAdapter helps the container and resolver interface with tools that debug Ember such as the Ember Extension 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:

  • canCatalogEntriesByType
  • catalogEntriesByType

The adapter will need to be registered in the application's container as container-debug-adapter:main

Example:

1
2
3
4
5
6
7
Application.initializer({
  name: "containerDebugAdapter",

  initialize: function(container, application) {
    application.register('container-debug-adapter:main', require('app/container-debug-adapter'));
  }
});
Show:

Methods

Properties

Show:

canCatalogEntriesByType

(type) Boolean

Returns true if it is possible to catalog a list of available classes in the resolver for a given type.

Parameters:

type String
The type. e.g. "model", "controller", "route"

Returns:

Boolean
whether a list is available for this type.

catalogEntriesByType

(type) Array

Returns the available classes a given type.

Parameters:

type String
The type. e.g. "model", "controller", "route"

Returns:

Array
An array of strings.
Show:

container

The container of the application being debugged. This property will be injected on creation.

Default: null

resolver

The resolver instance of the application being debugged. This property will be injected on creation.

Default: null