Book Image

Spring Design Patterns and Best Practices [Video]

By : Brandan Jones
Book Image

Spring Design Patterns and Best Practices [Video]

By: Brandan Jones

Overview of this book

This video will take you through Design Patterns and considerations required with the Spring framework. You will learn to use these design patterns to solve common problems when designing an application or system using the Spring Framework. This video will not only take you through ten of the essential GoF Design Patterns but also categories of patterns, considerations, and best practices required at different stages of Application Development. Design Patterns help us write software that is flexible and future-proof. If you’re overusing if tests, you are probably not writing a well-designed object-oriented program. You will see how to use several design patterns, instead of if tests, to write a program where logic resides in an optimal location. The examples in this course use the command pattern, decorator pattern, visitor pattern, and several others. You will understand the Dependency Injection pattern that is the main principle behind the decoupling process that Spring does, thus making it easier to manage your code. With practical examples, you will understand how patterns listed under the GoF patterns can be used in your Application Design. You will be introduced to the MVC pattern and how it treats controllers as Plain Old Java Objects, thus making it easier for testing the controllers. You will then learn about the Factory Method, and how it relates to one of the core components of object-oriented design: polymorphism. The code bundle for this course is available at https://github.com/PacktPublishing/Spring-Design-Patterns-and-Best-Practices
Table of Contents (6 chapters)
Chapter 5
Spring Integrations and the Value of Patterns
Content Locked
Section 5
Example: Abstract Factory Pattern
In this video, we will demonstrate abstract factory pattern and Prototype Pattern in an example. - Create simple Java classes that we will configure in Spring - Show how to configure beans in Spring - Create an object from a known profile, and change attributes to model a different object