java design pattern ~ factory pattern

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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326611385&siteId=291194637