Learn how to use the five most popular creational design patterns—Builder, Singleton, Prototype, Factory Method, and Abstract Factory—to write better Java code.
Overview
Syllabus
Introduction
- Improve code with creational design patterns
- What you should know
- What is a design pattern?
- Creational design patterns
- Avoid complex constructors
- Implement the Builder pattern
- Implement a complete Builder pattern
- Complex constructions
- When to use the Singleton pattern
- Implement the Singleton pattern
- Multithreading with the Singleton pattern
- Java's Collection class
- Understand the Prototype pattern
- Implement the Prototype pattern
- Dealing with mutability
- Understand the Factory Method pattern
- Implement a simple Factory Method pattern
- Introduction to hierarchies
- The complete Factory Method pattern
- Understand the Abstract Factory pattern
- Dealing with extensible factories
- Implement the Abstract Factory pattern
- Implement extensible factories
- Next steps
Taught by
Bethan Palmer