Applied Java Patterns

( 1 )

Overview

Increasingly, Java developers are recognizing the value of patterns in helping to build more robust, effective software systems -- but most books on patterns are either generic or focused on other languages. Now, the creators of Sun's own course on Java patterns have written the definitive book for working developers. Replete with working code, this book offers practical help with all types of patterns, in every facet of development -- from individual classes to overall system architecture. First, the authors ...
See more details below
Paperback
$23.67
BN.com price
(Save 32%)$34.99 List Price
Other sellers (Paperback)
  • All (23) from $1.99   
  • New (7) from $22.89   
  • Used (16) from $1.99   
Sending request ...

Overview

Increasingly, Java developers are recognizing the value of patterns in helping to build more robust, effective software systems -- but most books on patterns are either generic or focused on other languages. Now, the creators of Sun's own course on Java patterns have written the definitive book for working developers. Replete with working code, this book offers practical help with all types of patterns, in every facet of development -- from individual classes to overall system architecture. First, the authors introduce the fundamentals of patterns, presenting a high-level overview of how they can be used most effectively in Java development, and introducing each key type of pattern: creational, behavioral, and structural. Next, they present specific techniques for using patterns with core Java APIs (including security, event, JavaBeans, and Swing APIs); and in advanced distributed development with JDBC, RMI, CORBA, JNDI, and JavaSpaces. The book concludes with detailed coverage of pattern use in enterprise systems built with servlets, JSP, and other J2EE infrastructure technologies.
Read More Show Less

Editorial Reviews

From The Critics
In this guide for experienced developers, fundamentals of design patterns are reviewed and pattern application to the Java platform is demonstrated. Proven techniques are presented for all types of patterns, from system architecture to single classes. A pattern catalog is provided, organized into four categories of creational, structural, behavioral, and system patterns. Patterns in the core Java APIs are identified, and techniques are presented for pattern use in distributed development. Stelting is an instructor for Sun Microsystems, specializing in Java technology and object-oriented programming. Maassen teaches courses in Java technology for Sun Educational Services. Annotation c. Book News, Inc., Portland, OR (booknews.com)
Read More Show Less

Product Details

  • ISBN-13: 9780130935380
  • Publisher: Addison Wesley
  • Publication date: 2/9/2011
  • Series: Sun Microsystems Press Series
  • Pages: 600
  • Product dimensions: 1.21 (w) x 7.50 (h) x 9.25 (d)

Meet the Author

STEPHEN STELTING is an instructor for Sun Microsystems specializing in Java technology and object-oriented programming. For over a decade, he has worked in software development, consulting, and technical training. He currently develops new course content and teaches a wide variety of introductory and advanced courses.

OLAV MAASSEN is a courseware developer for Sun Educational Services and a Master Instructor for Sun Ed in the Netherlands. He is a certified Java Developer as well as an Enterprise Architect.

Read More Show Less

Read an Excerpt

PrefaceWhy We Wrote This Book

During the many Java programming language courses we teach, we have found that only a few programmers know what design patterns are when asked. About one in ten is able to name a few patterns off the top of his or her head. Of course, the concepts behind the patterns are familiar to many programmers. When we demonstrate patterns in the classroom, developers know and recognize them.

We decided to create a pattern catalog for the Java programming language developers who understand at a basic level why patterns are a good idea, and are interested in applying them, but want a practical, hands-on guide to just how and why to use each individual pattern. We've kept the book casual and frank in tone, and included full working Java code examples for each.

We will have succeeded when you complete this book having not only learned about design patterns and the Java programming language, but having had fun reading it, as well.What This Book Is About

This book will teach you the essential design patterns and how you can use them in your Java application. Furthermore, this book will show you where patterns are used in Java technology APIs and why they were used.Who Should Read This Book

This book is intended for experienced Java programmers who want to build better applications. You should be comfortable with the Java programming language and be familiar with most of the basic Java APIs. Some knowledge of UML is useful, but not required. We recommend UML Distilled by Martin Fowler as a UML reference.How This Book Is Organized

This book is divided into two parts. Part I, "Commonly Used Patterns," is organizedlike a pattern catalogue, reference-style.

Chapter 1: "Creational Patterns" on page 3 discusses patterns that create objects: Abstract Factory, Builder, Factory Method, Prototype, and Singleton.

Chapter 2: "Behavioral Patterns" on page 39 is focussed on the patterns that can determine the behavior of your object model: Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method, and Visitor.

Chapter 3: "Structural Patterns" on page 139 describes patterns that can bring structure to your application and has the following patterns: Adapter, Bridge, Composite, Decorator, Facade, Flyweight, HOPP, and Proxy.

Chapter 4: "System Patterns" on page 205 describes the patterns that help you build better architectures: Callback, Router, MVC, Session, Successive Update, Transaction, and Worker Thread.

Part II, "Patterns in the Java Programming Language," presents many of the Java APIs and shows the use of patterns in those API and their benefit.

Chapter 6: "Java Core APIs" on page 279 provides an overview in the familiar core APIs like Event Handling, JavaBeansTM, AWT and Swing, Collections, Input/Output, and Reflection.

Chapter 7: "Distributed Technologies" on page 303 describes selected distributed APIs and how patterns are used: JNDI, JDBC, RMI, and CORBA.

Chapter 8: "Jini and J2EE Architectures" on page 317 focuses on the two complementary frameworks Jini and J2EE. J2EE is further divided into Servlets, JSP and EJB technologies.How to Use This Book

There are several ways to read this book. You could start at page one and read from cover to cover. However, we recommend you start with some of the easier patterns: Factory Method, Singleton, Observer, and Composite. Work your way through the book using those as starting points for your exploration. Alternatively, you might want to turn to sections in Part II first. Find an API you are familiar with and start looking for patterns there.

You can read the patterns in any order you feel most comfortable with. Later, you can use this book as a reference to refresh your memory when you want to put your knowledge of patterns into practice.Companion Web Site

This book has a companion Web site to provide you with updates and other material: it is located at http://www.phptr.com/appliedjavapatterns

Read More Show Less

Table of Contents



Preface.

Why We Wrote This Book. What This Book Is About. Who Should Read This Book? Conventions Used. How This Book Is Organized. How to Use This Book. Companion Web Site. Acknowledgments.

Introduction.

Why Patterns? History of the Patterns Movement. Basic Concepts in Patterns. Software Abstraction and Reuse. Summary.

COMMONLY USED PATTERNS.

1. Creational Patterns.

Introduction to Creational Patterns. Abstract Factory. Builder. Factory Method. Prototype. Singleton.

2. Behavioral Patterns.

Introduction to Behavioral Patterns. Chain of Responsibility. Command. Interpreter. Iterator. Mediator. Memento. Observer. State. Strategy. Visitor. Template Method.

3. Structural Patterns.

Introduction to Structural Patterns. Adapter. Bridge. Composite. Decorator. Façade. Flyweight. Half-Object Plus Protocol (HOPP). Proxy.

4. System Patterns.

Introduction to System Patterns. Model-View-Controller (MVC). Session. Worker Thread. Callback. Successive Update. Router. Transaction.

II. PATTERNS IN THE JAVA PROGRAMMING LANGUAGE.

5. Introduction to Java Programming Language Patterns.

6. Java Core APIs.

Event Handling. JavaBeans. AWT and Swing — The Graphical User Interface APIs. Collections Framework. Input-Output (I/O). Reflection.

7. Distributed Technologies.

Java Naming and Directory Interface (JNDI). JDBC. RMI. CORBA.

8. Jini and J2EE Architectures.

Jini. Java 2, Enterprise Edition (J2EE). Servlets and JSPs. Enterprise JavaBeans.

Appendix A: Full Code Examples.

System Requirements. Creational Pattern Code Examples. Abstract Factory.Builder. Factory Method. Prototype. Singleton. Chain of Responsibility. Command. Interpreter. Iterator. Mediator. Memento. Observer. State. Strategy. Visitor. Template Method. Adapter. Bridge. Composite. Decorator. Façade. Flyweight. Half-Object Plus Protocol (HOPP). Proxy. Model-View-Controller (MVC). Session. Worker Thread. Callback. Successive Update. Router. Transaction.

Appendix B: Bibliography.

Index.

Read More Show Less

Preface

Preface

Why We Wrote This Book

During the many Java programming language courses we teach, we have found that only a few programmers know what design patterns are when asked. About one in ten is able to name a few patterns off the top of his or her head. Of course, the concepts behind the patterns are familiar to many programmers. When we demonstrate patterns in the classroom, developers know and recognize them.

We decided to create a pattern catalog for the Java programming language developers who understand at a basic level why patterns are a good idea, and are interested in applying them, but want a practical, hands-on guide to just how and why to use each individual pattern. We've kept the book casual and frank in tone, and included full working Java code examples for each.

We will have succeeded when you complete this book having not only learned about design patterns and the Java programming language, but having had fun reading it, as well.

What This Book Is About

This book will teach you the essential design patterns and how you can use them in your Java application. Furthermore, this book will show you where patterns are used in Java technology APIs and why they were used.

Who Should Read This Book

This book is intended for experienced Java programmers who want to build better applications. You should be comfortable with the Java programming language and be familiar with most of the basic Java APIs. Some knowledge of UML is useful, but not required. We recommend UML Distilled by Martin Fowler as a UML reference.

How This Book Is Organized

This book is divided into two parts. Part I, "Commonly Used Patterns," is organized like a pattern catalogue, reference-style.

Chapter 1: "Creational Patterns" on page 3 discusses patterns that create objects: Abstract Factory, Builder, Factory Method, Prototype, and Singleton.

Chapter 2: "Behavioral Patterns" on page 39 is focussed on the patterns that can determine the behavior of your object model: Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method, and Visitor.

Chapter 3: "Structural Patterns" on page 139 describes patterns that can bring structure to your application and has the following patterns: Adapter, Bridge, Composite, Decorator, Facade, Flyweight, HOPP, and Proxy.

Chapter 4: "System Patterns" on page 205 describes the patterns that help you build better architectures: Callback, Router, MVC, Session, Successive Update, Transaction, and Worker Thread.

Part II, "Patterns in the Java Programming Language," presents many of the Java APIs and shows the use of patterns in those API and their benefit.

Chapter 6: "Java Core APIs" on page 279 provides an overview in the familiar core APIs like Event Handling, JavaBeansTM, AWT and Swing, Collections, Input/Output, and Reflection.

Chapter 7: "Distributed Technologies" on page 303 describes selected distributed APIs and how patterns are used: JNDI, JDBC, RMI, and CORBA.

Chapter 8: "Jini and J2EE Architectures" on page 317 focuses on the two complementary frameworks Jini and J2EE. J2EE is further divided into Servlets, JSP and EJB technologies.

How to Use This Book

There are several ways to read this book. You could start at page one and read from cover to cover. However, we recommend you start with some of the easier patterns: Factory Method, Singleton, Observer, and Composite. Work your way through the book using those as starting points for your exploration. Alternatively, you might want to turn to sections in Part II first. Find an API you are familiar with and start looking for patterns there.

You can read the patterns in any order you feel most comfortable with. Later, you can use this book as a reference to refresh your memory when you want to put your knowledge of patterns into practice.

Companion Web Site

This book has a companion Web site to provide you with updates and other material: it is located at http://www.phptr.com/appliedjavapatterns

Read More Show Less

Customer Reviews

Average Rating 5
( 1 )
Rating Distribution

5 Star

(1)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing 1 Customer Review
  • Anonymous

    Posted May 6, 2002

    A very detailed java book on patterns

    I personally, went through a lot of books on patterns and needed something in java. I read a certain book from a certain Cooper (freely available on the net, make a google search), was pretty basic. But this one is extensively written and full of UML diagrams, making this a a very informative read. What i also like was it's sections on inter pattern relationships. A must buy for studying patterns up close

    Was this review helpful? Yes  No   Report this review
Sort by: Showing 1 Customer Review

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)