- Beautiful Code
- Chapter 26 - Labor-Saving Architecture: An Object-Oriented Framework for Networked Software :
- The authors demonstrated how a logging framework can be built in an object-oriented way by following commonality/variability analysis methodology.
- The commonality was achieved by adopting Template Method pattern. That is, common steps in a logging server were defined in the Logging_server base class's run() method, deferring specialization of individual steps of its operation to hook methods in derived classes.
- The variability was achieved by adopting Wrapper Facade pattern. That is, the variability of semantic and syntactic differences, such as synchronization and IPC mechanisms, was hidden into base classes, such as Acceptor and Mutex . Then using C++ template feature, Logging_server could choose the appropriate Acceptor and Mutex subclasses in a parameterized way.
Thursday, January 24, 2008
Links for 2008-01-24
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment