You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.
When the instantiation of given dependency or a series of dependencies involves complex logic or configuration you can consider using a factory service.
Taking this further, an abstract class can define the interface and the basic/common operations for the dependency instantiation and/or configuration of a series of abstract objects. Concrete implementations of the factory can specify the instantiation process further in order to return instances of concrete dependencies. This is the abstract factory pattern.
Based on discussions:
When the instantiation of given dependency or a series of dependencies involves complex logic or configuration you can consider using a factory service.
Taking this further, an abstract class can define the interface and the basic/common operations for the dependency instantiation and/or configuration of a series of abstract objects. Concrete implementations of the factory can specify the instantiation process further in order to return instances of concrete dependencies. This is the abstract factory pattern.
// cc @johnpapa @wardbell
The text was updated successfully, but these errors were encountered: