Рет қаралды 16,212
java9s.com
Command Pattern helps in simplifying the applications which has a lot of controls to handle.
The important thing is to have an interface so that we can implement as many commandExecutors as we need and all the list of commands are present with the command Executors and finally the command receiver which is actually the one that takes the action.
So, command pattern is applied where the applications has many controls to handle.
It simplifies and encapsulates the receivers which act.
We can add as many command controllers as we need
Example Code:
github.com/jav...
Other tutorial you might be interested:
Complete Java Beginners Tutorials:
• Complete Java Tutorial...
Multithreading in Java tutorial:
• Multithreading in Java...
Spring 3 MVC Framework tutorials:
• Spring 3 MVC Framework...
Spring Framework Tutorials:
• Spring Framework Tutor...
Design Patterns in Java:
• Design Patterns Tutori...
Complete Generics Tutorials playlist
• Generics in Java Tutor...
References:
en.wikipedia.o...
/ java9s
/ java9s
/ java9s