Added real world example of Command pattern

JUnit 4 Statement class is also an example of Command pattern. Added that to list of real world examples
This commit is contained in:
Narendra Pathai 2018-12-03 18:58:20 +05:30 committed by GitHub
parent 53b673d5b0
commit 0fa18d91c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,7 @@ Use the Command pattern when you want to
## Real world examples
* [java.lang.Runnable](http://docs.oracle.com/javase/8/docs/api/java/lang/Runnable.html)
* [org.junit.runners.model.Statement](https://github.com/junit-team/junit4/blob/master/src/main/java/org/junit/runners/model/Statement.java)
* [Netflix Hystrix](https://github.com/Netflix/Hystrix/wiki)
* [javax.swing.Action](http://docs.oracle.com/javase/8/docs/api/javax/swing/Action.html)