Building trust in third-party components using component wrappers in the .NET frameworks

Christine Mingins, Chee Yeen Chan · 2002

Software purchasers are often provided with very sparse information about how to correctly deploy software components. We describe a novel contract-based approach to building trust in third party components. In contrast to the usual approach where contracts specifying the software semantics are constructed at the time of source code generation, we retrofit existing components with Contract wrappers. Sets of client requirements on the component are expressed in terms of software contracts using the Design by Contract method. The targeted component is then wrapped in this executable specification. Subsequent calls to the component are made via the wrapper. Any client misunderstanding about the component's functionality will be picked up as contract violations. Contract wrappers also serve as the basis for test suites for integrating components into applications, and as documentation for future updates.

Read the paper · More papers on PaperTik