* Moves facade to Java 11 * Moves factory-kit to Java 11 * Moves factory-method to Java 11 * Moves feature-toggle to Java 11 * Moves fluentinterface to Java 11 * Moves flux to Java 11 * Moves flyweight to Java 11 * Moves front-controller to Java 11 * Uses stream properly * Resolves issues with ci
layout, title, folder, permalink, categories, tags
layout | title | folder | permalink | categories | tags | |
---|---|---|---|---|---|---|
pattern | Factory Kit | factory-kit | /patterns/factory-kit/ | Creational |
|
Intent
Define a factory of immutable content with separated builder and factory interfaces.
Class diagram
Applicability
Use the Factory Kit pattern when
- a class can't anticipate the class of objects it must create
- you just want a new instance of a custom builder instead of the global one
- you explicitly want to define types of objects, that factory can build
- you want a separated builder and creator interface