Prototype Pattern
Create new objects by copying a configured example. A creational pattern in the Design Patterns (GoF) catalog. With Java/Spring code.
Create new objects by copying a configured example.
- Family
- Design Patterns (GoF)
- Category
- Creational
- Source
- Gamma, Helm, Johnson, Vlissides · Head First Design Patterns
More creational patterns
- Factory Method — Let a method decide which concrete class to instantiate.
- Abstract Factory — Create families of related objects that must be used together.
- Builder — Construct complex objects step by step with readable code.
- Singleton — Guarantee one instance — usually better handled by your DI container.