ContainerDebugAdapter

Ember.ContainerDebugAdapter Class PUBLIC Extends: Ember.Object Defined in: packages/ember-extension-support/lib/container_debug_adapter.js:16 Module: ember-extension-support 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: canCatalog

Container#validationCache

validationCacheInheritingDictprivate Defined in packages/container/lib/container.js:64

Container#reset()

reset (fullName) private Defined in packages/container/lib/container.js:153 Clear either the entire cache or just the cache for a particular key. Parameters: fullName String optional key to reset; if missing, resets everything

ContainerDebugAdapter#catalogEntriesByType()

catalogEntriesByType (type) Arraypublic Defined in packages/ember-extension-support/lib/container_debug_adapter.js:80 Returns the available classes a given type. Parameters: type String The type. e.g. "model", "controller", "route". Returns: Array An array of strings.

ContainerDebugAdapter#canCatalogEntriesByType()

canCatalogEntriesByType (type) Booleanpublic Defined in packages/ember-extension-support/lib/container_debug_adapter.js:63 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.

Container#lookupFactory()

lookupFactory (fullName, options) Anyprivate Defined in packages/container/lib/container.js:121 Given a fullName, return the corresponding factory. Parameters: fullName String options [Object] source [String] The fullname of the request source (used for local lookup) Returns: Any

Container#lookup()

lookup (fullName, options) Anyprivate Defined in packages/container/lib/container.js:71 Given a fullName return a corresponding instance. The default behaviour is for lookup to return a singleton instance. The singleton is scoped to the container, allowing multiple containers to all have their own locally scoped singletons. let registry = new Registry(); let container = registry.container(); registry.register('api:twitter', Twitter); let twitter = container.lookup('api:twitter'); twitter

Container#ownerInjection()

ownerInjectionObjectprivate Defined in packages/container/lib/container.js:168 Returns an object that can be used to provide an owner to a manually created instance. Returns: Object

Container#registry

registryRegistryprivate Defined in packages/container/lib/container.js:42 Available since 1.11.0

Container#owner

ownerObjectprivate Defined in packages/container/lib/container.js:35