Principles of Design Patterns: Programming for Excuses
The role of the factory pattern:
A. In the design of the application, the creation of objects is centralized in one place or managed by a certain class ( spring )
B. Objects can be added directly without changing the application program, which is also beneficial to the maintenance of objects.
Types of Factory Patterns:
A. Simple Factory
B. Factory Method
C. Abstract Factory