Microsoft Visual Basic Design Patterns (Microsoft Professional Series)

[Previous] [Next]

The Object By Value design pattern, similar to the Prototypical Object Factory (Chapter 9), permits an object to be cloned. However, the Object By Value design pattern can also pass the clone to a recipient across process boundaries. Similar to the Smart Proxy (Chapter 7), the recipient is then referencing an object in its own process address space, thus avoiding the overhead of cross-process invocation. Unlike the Smart Proxy, however, all object invocations are performed within the local copy, whereas a Smart Proxy can intelligently decide when to delegate requests back to the original object across process boundaries.

Категории