This video looks at the Mediator pattern from a conceptual level and how it is used in the framework.
- [Instructor] The Mediator pattern is another one … of these patterns that we see used in a couple places … in the Spring Framework, but we don't use … that often when we write code. … In the Spring Framework, the single most important … place that we see the Mediator pattern used is … in the DispatcherServlet and the way … that it operates in Spring MVC. … Now, often it can also be used … when setting the state of various components at once, … and that's another time that we see … that used throughout the Framework … because when they have to do this, … these are all hidden kind of underneath the covers. … So how does this pattern actually work? … So, the Mediator provides encapsulation … on object behavior. … Communication channels flow through the Mediator, … who then, in turn, allow its mediated classes … to do work. … Mediated classes do not communicate with each other … and that's really the key of this pattern. … They only communicate with the Mediator. … And the Mediator classes themselves …
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 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.