Skip to main content Accessibility help
×
Hostname: page-component-77c89778f8-5wvtr Total loading time: 0 Render date: 2024-07-21T12:26:03.599Z Has data issue: false hasContentIssue false

Chapter 3 - From a Specific Task to “Integration-Ready” Components

Published online by Cambridge University Press:  17 August 2009

Jeff Zhuk
Affiliation:
Internet Technology School, Inc.
Get access

Summary

The whole is more than the sum of its parts.

—Aristotle

One 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 Design
Software Engineering with XML, Java, .NET, Wireless, Speech, and Knowledge Technologies
, pp. 69 - 132
Publisher: Cambridge University Press
Print publication year: 2004

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×