[an error occurred while processing this directive]

Design Pattern: Command

Purpose

Encapsulate a request as an object. Enables polymorphic processing of different client requests. Fits naturally into [priority] queue processing, typical of transaction servers (e.g., file servers, web servers). Results in a simple, general interface that is unaffected by new commands/transactions.

Command Design Pattern

Consequences

Enables designer to factor out code that is common to different "methods" aka operations or commands.

Sample Code

[an error occurred while processing this directive]