O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Spring Design Patterns and Best Practices

Video Description

Manage the Spring framework effectively to create your own system

About This Video

  • Solve common problems while designing an application or system in the Spring framework
  • Manage and test your code easily with Spring's Dependency Injection pattern
  • Understand the benefits that the right design patterns can offer your toolkit

In Detail

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

  1. Chapter 1 : Spring Fundamentals
    1. The Course Overview 00:07:05
    2. The Overview 00:16:48
    3. Why Spring? Why Design Patterns? 00:10:18
    4. Polymorphism: Variable Type Versus Object Type 00:13:44
    5. Creating Objects 00:20:34
    6. Spring Configuration 00:13:11
  2. Chapter 2 : Starting Our Project
    1. Project Overview and Scrum Board 00:08:00
    2. What Is Maven? 00:13:55
    3. Example - Create a Maven Project in Eclipse 00:11:39
    4. Simple Interface with Model View Controller 00:10:26
    5. Starting Our Look and Feel 00:17:08
  3. Chapter 3 : The Different Types of Design Patterns
    1. Categories of Design Pattern 00:14:20
    2. Behavioral Patterns 00:14:43
    3. Creational Pattern Explained - Factory Method 00:09:54
    4. Factory Method Example 00:11:05
    5. Interceptor Pattern 00:11:50
  4. Chapter 4 : Decorator Pattern
    1. What Is the Decorator Pattern? 00:12:19
    2. Overview of Forms in Spring MVC/Thymeleaf 00:08:57
    3. Creating a Screen for Native, Woody, and Herbaceous 00:20:11
    4. Creating a Responsive Screen Based on Selections 00:27:17
    5. Store Selections in Objects 00:19:03
  5. Chapter 5 : Spring Integrations and the Value of Patterns
    1. Spring Configuration and the Singleton Pattern 00:17:44
    2. Spring Annotations 00:15:36
    3. Adding Decorators 00:14:21
    4. Scope Types, Factories, and Prototypes 00:12:06
    5. Example: Abstract Factory Pattern 00:22:44
  6. Chapter 6 : Template Patterns and Visitor Patterns to Generate JSON
    1. JSON Fundamentals 00:10:08
    2. What Is an Abstract Class? 00:12:59
    3. Visitor Design Pattern 00:16:38
    4. Creating JSON with Template and Visitor 00:19:48
    5. Course Summary 00:20:22