patterns:parameter_object
This is an old revision of the document!
Table of Contents
Parameter Object
Alternative Names
- Argument Object
Context
Intent
Problem
Structure
Variations
Origin
James Noble: Arguments and Results
Advantages
Disadvantages
Relations to Other Patterns
Pattern Collections
Examples
Example 1: Event Args
A typical usage of this pattern is the groping of parameter in events. Some events carry large amounts of context data. Furthermore modifying the signature of an event causes large ripple effects as they are typically used on the interface to other subsystems, layers, etc. and there is an unknown and probably large amount of users of the event.
- In .NET there is the class System.EventArgs and its descendants.
- In Java there is java.util.EventObject
Description Status
Further Reading
Discussion
Discuss this wiki article and the pattern on the corresponding talk page.
patterns/parameter_object.1373141632.txt.gz · Last modified: 2013-07-06 22:13 by christian