Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and Addison-Wesley was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals.
The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein.
The publisher offers discounts on this book when ordered in quantity for special sales. For more information, please contact:
Pearson Education Corporate Sales DivisionOne Lake StreetUpper Saddle River, NJ 07458(800) 382-3419[email protected]
Visit AW on the Web: http://www.awl.com/cseng/
Library of Congress Cataloging-in-Publication Data Cooper, James William, 1943– Java design patterns : a tutorial / James W. Cooper. p. cm. Includes bibliographical references and index. ISBN 0-201-48539-7 1. Java (Computer program language) I. Title QA76.73.J38 C658 2000 005.l3'3—dc21 99-056547
Copyright © 2000 Addison Wesley All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior consent of the publisher. Printed in the United States of America. Published simultaneously in Canada.
Acquisitions Editor: Paul BeckerEditorial Assistant: Ross VenablesProduction Coordinator: Jacquelyn DoucetteCompositor: Stratford Publishing Services
Text printed on recycled paper
4 5 6 7 8 9 MA 03 02 01
4th Printing January 2001