This video is an exercise about implementing prototypes in Spring and having the framework utilize it.
- [Instructor] So now that we've talked a little bit … about the prototype pattern I want to show you … how it's used in the Spring Framework … as opposed to the Java Framework this time. … So let's jump into our IDE … and just like we've done a couple times before … let's create a new package in our base package … And this time we're going to call it Prototype. … Now we're going to create two very dumb classes here … and the first we're going to call ProtoTrue … and the second … we're going to call ProtoFalse … Now we're not going to do anything with either one … of these classes as far as implementation. … What we are going to do is jump into … the Design Patterns App application. … Alright, so in this class we're going to create a Bean. … Public ProtoFalse … and we'll simply call it that … and we will return a new ProtoFalse object. … Now we're going to do another Bean … and this time we're going to set it Scope … to be equal to … prototype. … Now we're going to do a public ProtoTrue …
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.