Learn about the Command pattern from a conceptual level and how it is used in the framework.
- [Instructor] The Command pattern is another one … of these design patterns that exists in the Spring framework … we don't use a lot that are behavior based. … In the Spring framework … there's really two distinct use cases. … First, it's seen with Runnable instances. … Things like the CommandLineRunner, … where you're going to execute a Runnable command … from the base class itself. … The second use case that we see is all the more often seen, … and that's in our MVC layer. … And there's actually an AbstractCommandController … that you can use in Spring MVC … that implements this command pattern. … And the idea here is that in an MVC world, … often you're going to execute these commands against controls, … and you don't want to manipulate the individual controls. … That's going to lead us into what the pattern actually is. … The whole gist of the command pattern is that it provides … an abstraction layer for these request processing scenarios. … Think about a shopping cart. … You have a very common 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
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.