Book contents
- Frontmatter
- Contents
- Preface
- Contributors
- Acknowledgments
- Introduction
- Notes for Educators: AMA Teaching Methods
- Chapter 1 Collaborative Engineering
- Chapter 2 Software Architecture and Integration Technologies
- Chapter 3 From a Specific Task to “Integration-Ready” Components
- Chapter 4 Integration with Voice
- Chapter 5 An Introduction to Knowledge Technologies
- Chapter 6 Write Once
- Chapter 7 The New Generation of Client–Server Software
- Chapter 8 Wireless Technologies
- Chapter 9 Programming Wireless Application Protocol Applications
- Chapter 10 A Single JavaCard Identity Key for All Doors and Services
- Chapter 11 The J2ME Family
- Chapter 12 Speech Technologies on the Way to a Natural User Interface
- Chapter 13 Integration with Knowledge
- Chapter 14 Distributed Life in the JXTA and Jini Communities
- Appendix 1 Java and C#: A Saga of Siblings
- Appendix 2 XML and Web Services
- Appendix 3 Source Examples
- Index
Chapter 3 - From a Specific Task to “Integration-Ready” Components
Published online by Cambridge University Press: 17 August 2009
- Frontmatter
- Contents
- Preface
- Contributors
- Acknowledgments
- Introduction
- Notes for Educators: AMA Teaching Methods
- Chapter 1 Collaborative Engineering
- Chapter 2 Software Architecture and Integration Technologies
- Chapter 3 From a Specific Task to “Integration-Ready” Components
- Chapter 4 Integration with Voice
- Chapter 5 An Introduction to Knowledge Technologies
- Chapter 6 Write Once
- Chapter 7 The New Generation of Client–Server Software
- Chapter 8 Wireless Technologies
- Chapter 9 Programming Wireless Application Protocol Applications
- Chapter 10 A Single JavaCard Identity Key for All Doors and Services
- Chapter 11 The J2ME Family
- Chapter 12 Speech Technologies on the Way to a Natural User Interface
- Chapter 13 Integration with Knowledge
- Chapter 14 Distributed Life in the JXTA and Jini Communities
- Appendix 1 Java and C#: A Saga of Siblings
- Appendix 2 XML and Web Services
- Appendix 3 Source Examples
- Index
Summary
The whole is more than the sum of its parts.
—AristotleOne of the challenges programmers face every day is creating reusable components with a minimum of overhead.
We will consider an example of a service component and a service container, as well as their design and code evolution from a specific to a very flexible solution.
This chapter starts with a single Java class, which then evolves into a visual component. Then, a service container takes the central place on the stage. The chapter teaches how to build a container that is reusable in a Java applet or an application (desktop) program. It provides a solution to one of the most difficult problems: how to make the service container extensible and ready for more services, including those unknown at this time.
This very first example demonstrates one of Java code's benefits. Imagine a small device, such as a wristwatch, with a built-in Java chip. A single text line in the middle of this small screen usually displays the current time. With wireless Internet connection we will enable this device to display weather, stock, traffic, news from friends and family, community or business information (delivered via Short Message Service), and turn it into a “news watch.” Figure 3.1 illustrates this device that can be viewed as an extended wireless pager or scaled down wireless messenger described in the Chapter 11 (J2ME).
- Type
- Chapter
- Information
- Integration-Ready Architecture and DesignSoftware Engineering with XML, Java, .NET, Wireless, Speech, and Knowledge Technologies, pp. 69 - 132Publisher: Cambridge University PressPrint publication year: 2004