Registered factories are instantiated by having create called on them. Additionally they are singletons by default, so each time they are looked up they return the same instance.
However, that behavior can be modified with the
options to the
- Any values to set on an instance of the class
- The item produced by the factory.
A function that will create an instance of the class with any dependencies injected.