A Gang of Four behavioral design pattern that encapsulates a request as a standalone object, allowing requests to be queued, logged, undone or parameterized independently of the code that issues them.
Facts
Core PrincipleEncapsulates a request, together with the object and parameter values needed to carry it out, as a standalone object that can be stored, passed around and invoked later. 2 Connections
Associated With
Erich Gamma, Pioneers Erich Gamma co-authored the 1994 Design Patterns book that named and catalogued the Command pattern among the original 23.
In Field
Sources
1. Wikipedia: Design Patterns (book)
Wikimedia FoundationLead section, first sentenceQuote, Lead section, first sentence
Design Patterns: Elements of Reusable Object-Oriented Software (1994) is a software engineering book describing software design patterns.
View the Source 2. Wikipedia: Command Pattern
Wikimedia FoundationLead section, first sentenceQuote, Lead section, first sentence
the command pattern is a behavioral design pattern in which an object is used to encapsulate all information needed to perform an action or trigger an event at a later time.
View the Source Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.