This video is an exercise about implementing a builder in Spring and having the framework utilize it.
- [Instructor] So now, it's time … to actually see the builder pattern in action. … I'd like you to go ahead and jump into your IDE, … and open up source, main, java, and our base package, … and we're going to create a new package … and we're going to call this one builder. … Now, in the builder package, we're going to start … with a simple Java Class … and we're going to call that Contact. … Now, to our Contact class, … we're going to create a couple attributes, … so firstName, lastName, and emailAddress. … And obviously, you can imagine … that a contact would have a lot more, … but for the purpose of this, this will work just fine. … Now, I'm going to generate a few methods here, … first thing I'm going to do is create a no-args constructor, … and I like to throw a super in there. … And then, I'm going to create an all-args constructor, … and finally, I'm going to do Getters and Setters. … And once again, your IDE should have some way … to generate all of this. … If it doesn't, you can just type it in, …
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.