| A Design Pattern Dictionary | ||
Section | - The Dictionary | ||
Foil | 30 | - Strategy |
www | ||||
.swskilltree | Page published 2003/12/11, updated 2009/8/2. Copyright © 2016 by Avner Ben. All rights reserved. | |||
.org |
Context:
|
"Dynamic classification": The implementation of a discrete object behavior (typically, less than a method) is determined during its creation and may be reconfigured later (e.g. formatting, in a configurable environment). |
||||
Challenge: |
To encapsulate the specific behavior. To make it easily replaceable. |
||||
Skill: |
The system shall have the capability to reconfigure discrete functionality...
|
||||
Participants: |
|
||||
Signature: |
Context references global Strategy. Alternatively, Context contains Strategy (which contains data). |
||||
Source: |
GOF. |
||||
Scope: |
General. (In dynamically-typed languages, instance method override may do.) |