This video looks at the Prototype pattern from a conceptual level.
- [Instructor] Of all the patterns … that we're going to talk about … on this course, … the prototype pattern is the one that I have used the least … in raw Java. … But it's one that I use quite often … in Spring. … And we're going to spend quite a bit of time focusing … on the Spring side of this pattern. … So let's talk about how it's used in Spring. … Any bean that has its scope marked as prototype … are treated as prototype beans. … Now in Spring, the bean configuration itself … is what is used as the prototype. … In fact, in Java config, … the actual bean method gets called … every time that you need an instance of that object … through the prototype scoping. … New instances are created, not cloned … as we will see in a traditional Java implementation … when needed by the runtime … and this is important. … None of this work is actually done at startup, … it is not done until the instance is actually needed … and injected into the application context … or the runtime itself. … Now the traditional Java pattern …
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.