mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-08-17 04:26:05 +00:00
docs: Amendments to factory-kit README (#2305)
This commit is contained in:
+10
-1
@@ -5,6 +5,9 @@ language: en
|
|||||||
tags:
|
tags:
|
||||||
- Extensibility
|
- Extensibility
|
||||||
---
|
---
|
||||||
|
## Also Known As
|
||||||
|
|
||||||
|
Abstract-Factory
|
||||||
|
|
||||||
## Intent
|
## Intent
|
||||||
|
|
||||||
@@ -20,7 +23,7 @@ Real-world example
|
|||||||
|
|
||||||
In plain words
|
In plain words
|
||||||
|
|
||||||
> Factory kit is a configurable object builder.
|
> Factory kit is a configurable object builder, a factory to create factories.
|
||||||
|
|
||||||
**Programmatic Example**
|
**Programmatic Example**
|
||||||
|
|
||||||
@@ -110,11 +113,17 @@ Use the Factory Kit pattern when
|
|||||||
* A new instance of a custom builder is needed instead of a global one
|
* A new instance of a custom builder is needed instead of a global one
|
||||||
* The types of objects that the factory can build need to be defined outside the class
|
* The types of objects that the factory can build need to be defined outside the class
|
||||||
* The builder and creator interfaces need to be separated
|
* The builder and creator interfaces need to be separated
|
||||||
|
* Game developments and other applications that have user customisation
|
||||||
|
|
||||||
## Related patterns
|
## Related patterns
|
||||||
|
|
||||||
* [Builder](https://java-design-patterns.com/patterns/builder/)
|
* [Builder](https://java-design-patterns.com/patterns/builder/)
|
||||||
* [Factory](https://java-design-patterns.com/patterns/factory/)
|
* [Factory](https://java-design-patterns.com/patterns/factory/)
|
||||||
|
* [Abstract-Factory](https://java-design-patterns.com/patterns/abstract-factory/)
|
||||||
|
|
||||||
|
## Tutorials
|
||||||
|
|
||||||
|
* [Factory kit implementation tutorial](https://diego-pacheco.medium.com/factory-kit-pattern-66d5ccb0c405)
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user