Class FactoryManager
publicThe 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
.
create (initialValues) Object public
Module:
@ember/owner
Inherited from Factory packages/@ember/-internals/owner/index.ts:368
- 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.