Book contents
- Frontmatter
- Contents
- About the Author
- Foreword
- Preface
- Acknowledgments
- Part I INTRODUCTION TO BUILDING OBJECT APPLICATIONS
- Part II OBJECT-ORIENTED ANALYSIS, DESIGN, AND ARCHITECTURE
- Part III OBJECT-ORIENTED CONSTRUCTION
- Chapter 6 Measuring and Improving the Quality of Your Work—Object-Oriented Metrics
- Chapter 7 Choosing an Object-Oriented Language—Comparing the Leading Languages
- Chapter 8 Building Your Application—Effective Object-Oriented Construction Techniques
- Chapter 9 Making Your Applications Usable—Object-Oriented User Interface Design
- Chapter 10 Making Your Objects Persistent—Object-Orientation and Databases
- Chapter 11 Integrating Legacy Code—Wrapping
- Part IV OBJECT-ORIENTED TESTING
- Part V CONCLUSION
- APPENDICES
- Index
Chapter 11 - Integrating Legacy Code—Wrapping
from Part III - OBJECT-ORIENTED CONSTRUCTION
Published online by Cambridge University Press: 07 September 2010
- Frontmatter
- Contents
- About the Author
- Foreword
- Preface
- Acknowledgments
- Part I INTRODUCTION TO BUILDING OBJECT APPLICATIONS
- Part II OBJECT-ORIENTED ANALYSIS, DESIGN, AND ARCHITECTURE
- Part III OBJECT-ORIENTED CONSTRUCTION
- Chapter 6 Measuring and Improving the Quality of Your Work—Object-Oriented Metrics
- Chapter 7 Choosing an Object-Oriented Language—Comparing the Leading Languages
- Chapter 8 Building Your Application—Effective Object-Oriented Construction Techniques
- Chapter 9 Making Your Applications Usable—Object-Oriented User Interface Design
- Chapter 10 Making Your Objects Persistent—Object-Orientation and Databases
- Chapter 11 Integrating Legacy Code—Wrapping
- Part IV OBJECT-ORIENTED TESTING
- Part V CONCLUSION
- APPENDICES
- Index
Summary
What We'll Learn in This Chapter
Why we need to wrap.
What the approaches to wrapping are.
When, and when not, to use the following wrapping technologies: C APIs, dynamic shared libraries, screen scraping, peer-to-peer, and the Common Object Request Broker Architecture (CORBA).
The trade-offs of wrapping.
Information technology shops of today have a huge investment in information technology; unfortunately, the vast majority of it isn't object oriented (OO). In the 1980's it is estimated that over $ 1 trillion was invested in information technology in the United States alone. Needless to say organizations are motivated to retain as much of this investment as possible. Wrapping is a technique in which you make non-OO technology appear to be OO by putting a layer of OO code around it, which is often a critical part of any significant OO project.
A wrapper is a collection of one or more classes that encapsulates access to technology that isn't object-oriented to make it appear as if it is. A wrapper class is any class that is part of a wrapper. Wrapping, as shown in Figure 11.1, is used to provide OO applications access to hardware, operating system features, procedure libraries, function libraries, and even legacy applications. Wrapping allows you to retain your investment in older, non-OO technology by allowing you to reuse it in the new OO applications that you develop.
- Type
- Chapter
- Information
- Building Object Applications that WorkYour Step-by-Step Handbook for Developing Robust Systems with Object Technology, pp. 343 - 360Publisher: Cambridge University PressPrint publication year: 1997