[Previous] [Next]
The relationship between all Object By Value design pattern participants is as follows:
- A sender process creates a PersistableObject object and maintains a reference to an ObjectTransformer object and a Conduit mechanism. Using the ObjectTransformer object, the sender process initiates the action to extract the state of its PersistableObject to a data stream and sends the stream on its way down the Conduit mechanism.
- A recipient process retrieves the data stream at the other end of the Conduit and, with the help of an ObjectTransformer object, converts the stream back into a copy of the original object.
NOTE
A Conduit mechanism is used to transport a data stream from point A to point B. This mechanism could be one of a number of technologies, such as COM, MSMQ, HTML, or MAPI.
Figure 6-1 (next section) illustrates the course of required events to pass or return an object by value.