Spring 5 Design Patterns

Learn various design patterns and best practices in Spring 5 and use them to solve common design problems.
Preview in Mapt

Spring 5 Design Patterns

Dinesh Rajput

Learn various design patterns and best practices in Spring 5 and use them to solve common design problems.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Spring 5 Design Patterns Book Cover
Spring 5 Design Patterns
$ 35.99
$ 25.20
VMware Horizon View 5.3 Design Patterns and Best Practices Book Cover
VMware Horizon View 5.3 Design Patterns and Best Practices
$ 23.99
$ 16.80
Buy 2 for $34.30
Save $25.68
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781788299459
Paperback396 pages

Book Description

Design patterns help speed up the development process by offering well tested and proven solutions to common problems. These patterns coupled with the Spring framework offer tremendous improvements in the development process.

The book begins with an overview of Spring Framework 5.0 and design patterns. You will understand the Dependency Injection pattern, which is the main principle behind the decoupling process that Spring performs, thus making it easier to manage your code. You will learn how GoF patterns can be used in Application Design. You will then learn to use Proxy patterns in Aspect Oriented Programming and remoting. Moving on, you will understand the JDBC template patterns and their use in abstracting database access. Then, you will be introduced to MVC patterns to build Reactive web applications. Finally, you will move on to more advanced topics such as Reactive streams and Concurrency.

At the end of this book, you will be well equipped to develop efficient enterprise applications using Spring 5 with common design patterns

Table of Contents

Chapter 1: Getting Started with Spring Framework 5.0 and Design Patterns
Introducing Spring Framework
Simplifying application development using Spring and its pattern
Using a Spring container to manage beans with the Factory pattern
Life of a bean in the container
Spring modules
New features in Spring Framework 5.0
Summary
Chapter 2: Overview of GOF Design Patterns - Core Design Patterns
Introducing the power of design patterns
Common GoF Design Pattern overview
Creational design patterns
Summary
Chapter 3: Consideration of Structural and Behavioral Patterns
Examining the core design patterns
JEE design patterns
Summary
Chapter 4: Wiring Beans using the Dependency Injection Pattern
The dependency injection pattern
Types of dependency injection patterns
Configuring the dependency injection pattern with Spring
Dependency injection pattern with Java-based configuration
Dependency injection pattern with XML-based configuration
Dependency injection pattern with Annotation-based configuration
Best practices for configuring the DI pattern
Summary
Chapter 5: Understanding the Bean Life Cycle and Used Patterns
The Spring bean life cycle and its phases
Understanding bean scopes
Summary
Chapter 6: Spring Aspect Oriented Programming with Proxy and Decorator pattern
Proxy pattern in Spring
What are cross-cutting concerns?
What is Aspect-Oriented Programming?
Core AOP terminology and concepts
Defining pointcuts
Creating aspects
Implementing Advice
Define aspects using XML configuration
Understanding AOP proxies
Summary
Chapter 7: Accessing a Database with Spring and JDBC Template Patterns
The best approach to designing your data-access
Configuring the data source and object pool pattern
Implementing the Builder pattern to create an embedded data source
The DAO pattern with the Spring Framework
Best practices for Jdbc and configuring JdbcTemplate
Summary
Chapter 8: Accessing Database with Spring ORM and Transactions Implementing Patterns
ORM Framework and the patterns used
The data access object pattern
Integrating Hibernate with Spring
Transaction management strategies in Spring
Best practices for Spring ORM and transaction module in an application
Summary
Chapter 9: Improving Application Performance Using Caching Patterns
What is cache?
Understanding cache abstraction
Enabling caching via the Proxy pattern
Declarative Annotation-based caching
Declarative XML-based caching
Configuring the cache storage
Third-party cache implementations
Creating custom caching annotations
Top caching best practices to be used in a web application
Summary
Chapter 10: Implementing the MVC Pattern in a Web Application using Spring
Implementing the MVC pattern in a web application
Model 2 architecture MVC pattern with Spring
Enabling the Spring MVC
Passing model data to the view
Data binding with Command Design pattern
Validating forms input parameters
Implementing View in the MVC pattern
Best practices for web application design
Summary
Chapter 11: Implementing Reactive Design Patterns
Understanding application requirement over the years
Understanding the reactive pattern
Blocking calls
Non-blocking calls
Back-pressure
Implementing reactive with the Spring 5 Framework
Spring Web reactive module
Request and response body conversion
Summary
Chapter 12: Implementing Concurrency Patterns
Active object pattern
Monitor object pattern
Half-Sync/Half-Async patterns
Leader/follower pattern
Reactor pattern
Thread-specific storage pattern
Summary

What You Will Learn

  • Develop applications using dependency injection patterns
  • Learn best practices to design enterprise applications
  • Explore Aspect-Oriented Programming relating to transactions, security, and caching.
  • Build web applications using traditional Spring MVC patterns
  • Learn to configure Spring using XML, annotations, and Java.
  • Implement caching to improve application performance.
  • Understand concurrency and handle multiple connections inside a web server.
  • Utilizing Reactive Programming Pattern to build Reactive web applications.

Authors

Table of Contents

Chapter 1: Getting Started with Spring Framework 5.0 and Design Patterns
Introducing Spring Framework
Simplifying application development using Spring and its pattern
Using a Spring container to manage beans with the Factory pattern
Life of a bean in the container
Spring modules
New features in Spring Framework 5.0
Summary
Chapter 2: Overview of GOF Design Patterns - Core Design Patterns
Introducing the power of design patterns
Common GoF Design Pattern overview
Creational design patterns
Summary
Chapter 3: Consideration of Structural and Behavioral Patterns
Examining the core design patterns
JEE design patterns
Summary
Chapter 4: Wiring Beans using the Dependency Injection Pattern
The dependency injection pattern
Types of dependency injection patterns
Configuring the dependency injection pattern with Spring
Dependency injection pattern with Java-based configuration
Dependency injection pattern with XML-based configuration
Dependency injection pattern with Annotation-based configuration
Best practices for configuring the DI pattern
Summary
Chapter 5: Understanding the Bean Life Cycle and Used Patterns
The Spring bean life cycle and its phases
Understanding bean scopes
Summary
Chapter 6: Spring Aspect Oriented Programming with Proxy and Decorator pattern
Proxy pattern in Spring
What are cross-cutting concerns?
What is Aspect-Oriented Programming?
Core AOP terminology and concepts
Defining pointcuts
Creating aspects
Implementing Advice
Define aspects using XML configuration
Understanding AOP proxies
Summary
Chapter 7: Accessing a Database with Spring and JDBC Template Patterns
The best approach to designing your data-access
Configuring the data source and object pool pattern
Implementing the Builder pattern to create an embedded data source
The DAO pattern with the Spring Framework
Best practices for Jdbc and configuring JdbcTemplate
Summary
Chapter 8: Accessing Database with Spring ORM and Transactions Implementing Patterns
ORM Framework and the patterns used
The data access object pattern
Integrating Hibernate with Spring
Transaction management strategies in Spring
Best practices for Spring ORM and transaction module in an application
Summary
Chapter 9: Improving Application Performance Using Caching Patterns
What is cache?
Understanding cache abstraction
Enabling caching via the Proxy pattern
Declarative Annotation-based caching
Declarative XML-based caching
Configuring the cache storage
Third-party cache implementations
Creating custom caching annotations
Top caching best practices to be used in a web application
Summary
Chapter 10: Implementing the MVC Pattern in a Web Application using Spring
Implementing the MVC pattern in a web application
Model 2 architecture MVC pattern with Spring
Enabling the Spring MVC
Passing model data to the view
Data binding with Command Design pattern
Validating forms input parameters
Implementing View in the MVC pattern
Best practices for web application design
Summary
Chapter 11: Implementing Reactive Design Patterns
Understanding application requirement over the years
Understanding the reactive pattern
Blocking calls
Non-blocking calls
Back-pressure
Implementing reactive with the Spring 5 Framework
Spring Web reactive module
Request and response body conversion
Summary
Chapter 12: Implementing Concurrency Patterns
Active object pattern
Monitor object pattern
Half-Sync/Half-Async patterns
Leader/follower pattern
Reactor pattern
Thread-specific storage pattern
Summary

Book Details

ISBN 139781788299459
Paperback396 pages
Read More

Read More Reviews

Recommended for You

VMware Horizon View 5.3 Design Patterns and Best Practices Book Cover
VMware Horizon View 5.3 Design Patterns and Best Practices
$ 23.99
$ 16.80
Mastering JavaScript Design Patterns: A Practical Introduction to Building Better Applications [Video] Book Cover
Mastering JavaScript Design Patterns: A Practical Introduction to Building Better Applications [Video]
$ 94.99
$ 80.75
Unity 5 Level Design, Lighting, and Animation [Video] Book Cover
Unity 5 Level Design, Lighting, and Animation [Video]
$ 124.99
$ 106.25
JavaScript Design Patterns 20 Patterns for Advancing Your JavaScript Skills [Video] Book Cover
JavaScript Design Patterns 20 Patterns for Advancing Your JavaScript Skills [Video]
$ 94.99
$ 80.75
3D Printing Designs: Design an SD Card Holder Book Cover
3D Printing Designs: Design an SD Card Holder
$ 7.99
$ 5.60
Spring MVC: Designing Real-World Web Applications Book Cover
Spring MVC: Designing Real-World Web Applications
$ 69.99
$ 49.00