Class FactoryManager

public

The interface representing a manager which can be used for introspection of the factory's class or for the creation of factory instances with initial properties. The manager is an object with the following properties:

  • class - The registered or resolved class.
  • create - A function that will create an instance of the class with any dependencies injected.

Note: FactoryManager is not user-constructible; the only legal way to get a FactoryManager is via Owner.factoryFor.

Show:

Module: @ember/owner
initialValues
Object

Any values to set on an instance of the class

returns
Object

The item produced by the factory.

A function that will create an instance of the class with any dependencies injected.