Training Agenda

GoF Design Patterns Training
(Java & Spring)

The 23 Gang of Four design patterns are the shared vocabulary of object-oriented software design — patterns that solve recurring structural and behavioral problems in ways that experienced developers recognize immediately. But patterns are tools, not destinations: knowing when to apply them, when to avoid them, and how they appear in the frameworks you already use makes the difference between pattern literacy and pattern cargo-culting. This training covers the most practically relevant GoF patterns through Java examples and real framework internals.

1–2 days Live online · worldwide Up to 20 participants German or English
Who It's For
Who is this GoF design patterns training for?
Format
  • Audience: Java developers who work with Spring every day and want to see the patterns behind it, and teams that plan to refactor grown code and need a shared design vocabulary
  • Prerequisites: solid Java (interfaces, generics, lambdas); experience with Spring Boot helps
  • Duration: 1 day (creational and structural patterns) or 2 days (plus behavioral patterns and anti-patterns)
  • Format: closed in-house training for your team only, live online, up to 20 participants, in German or English; works standalone or before the Clean Code training
Why Spring
Why learn the patterns through Spring?

Your team already uses many of the 23 GoF patterns, because Spring is built on them. Factory Method sits behind the BeanFactory, a Proxy behind every @Transactional, Template Method behind JdbcTemplate and Observer behind ApplicationEventPublisher. Once developers see that, the patterns stop being textbook diagrams and become decisions they can make deliberately in their own code.

What We Cover
Structural solutions every developer should recognize
Day 1

Creational & Structural Patterns

  • Creational patterns: Factory Method, Abstract Factory, Builder, Singleton (and why it's often wrong), Prototype
  • Builder in practice: immutable objects, fluent APIs, Lombok @Builder
  • Factory patterns in Spring: BeanFactory, FactoryBean, @Bean methods
  • Structural patterns: Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy
  • Decorator in Spring: AOP proxies, transaction and security interceptors
  • Facade in practice: service layer hiding complex subsystems
  • Proxy patterns: JDK dynamic proxies vs CGLIB — how Spring AOP works
  • Adapter pattern: integrating third-party APIs with internal interfaces
Day 2

Behavioral Patterns & Anti-Patterns

  • Behavioral patterns: Chain of Responsibility, Command, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method, Visitor
  • Strategy pattern: replacing conditionals with polymorphism
  • Observer in Spring: ApplicationEventPublisher, @EventListener
  • Template Method: Spring's JdbcTemplate, RestTemplate — the pattern they use
  • Command pattern: undoable operations, request queuing
  • State machine patterns: Spring State Machine, explicit state vs if-else
  • Pattern combinations: real-world examples where multiple patterns work together
  • Anti-patterns: God Object, Anemic Domain Model, Golden Hammer — recognizing over-engineering
  • Refactoring to patterns: identifying where patterns improve existing code
Learning Outcomes
What your team walks away with

Developers who recognize design patterns in the frameworks they use daily, apply them deliberately when the fit is clear, and avoid them when simpler code is better.

FAQ
What are the GoF design patterns?

They are the 23 object-oriented design patterns from the 1994 book "Design Patterns" by Gamma, Helm, Johnson and Vlissides, the "Gang of Four". They fall into three groups: creational, structural and behavioral patterns.

Are GoF patterns still relevant with modern Java and Spring Boot?

Yes. Spring uses them internally, so understanding them explains how the framework behaves. Modern Java makes some of them lighter, for example Strategy and Command with lambdas, and the training shows both the classic and the modern form.

Should we book one day or two?

Day 1 covers creational and structural patterns, including how Spring uses factories and proxies. Day 2 adds behavioral patterns and anti-patterns such as God Object and Anemic Domain Model, plus refactoring existing code toward a pattern.

Which language are the examples in?

All examples are in Java with Spring. The sessions are held in German or English.

How do we book the training for our team?

Send your team size, your Java and Spring version and your preferred dates. You get a proposal with a 1- or 2-day outline.

Request the Design Patterns training

Well suited for mid-level Java developers building a stronger object-oriented design foundation. Works as a standalone day or before the Clean Code training.

Tell me your team size, your Java and Spring version and your preferred dates – you get a proposal with a 1- or 2-day outline.

Need hands-on help in your own project instead of a training? I also take on architecture and implementation work, fully remote.

Request the Design Patterns training