In this video, take a look at the Builder pattern from a conceptual level.
- [Instructor] Another common creation pattern … is the so-called builder pattern. … Now in Spring, you will see that this pattern … is used in various places throughout the framework. … One of the most common ones that I use … is the ResultActions, which is part of the MockMvc structure … used for testing web applications and web services … within the Spring framework. … One thing I want to notice, … even though it's not really in Spring, … is that Lombok actually has taken this builder pattern … to a whole new level by providing you an annotation … that does all the work that we're about to do … in the next video based on a simple annotation, … and it's really a time saver. … If you haven't looked at Lombok, … I highly encourage you to do so. … So let's take a look at the pattern as it exists … in a nutshell. … So each method returns the object reference it's called from … in the builder pattern. … The build method, which is usually the end of the chain, … returns a fully constructed object …
AuthorFrank P Moley III
- The patterns of the Spring framework
- Creational patterns in Spring
- The adapter and decorator pattern in action
- Structural patterns in Spring
- The repository pattern in action
- The observer, command, and mediator patterns
Skill Level Advanced
Spring: Framework In Depth (2017)with Frank P Moley III2h 16m Intermediate
What you should know1m 28s
1. Design Patterns and Spring
2. Creational Patterns in Spring
3. Structural Patterns in Spring
4. Operational Patterns in Spring
5. Other Framework Patterns in Spring
Next steps3m 27s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.