A hands-on guide to design
patterns for
Java platform
developers.
- Pattern-based solutions for every stage of the
development lifecycle
- Documents 30 patterns, including the 23 core patterns
for the Sun Certified Enterprise Architect exam
- Describes pattern use within the Java
APIs—including patterns for reflection, security,
AWT/Swing, RMI, JDBC, J2EE, and more
Increasingly, developers are recognizing the value of
design patterns in helping to create more robust, scalable,
reliable, and maintainable applications. Now there's a
book
that can help you bring the power of patterns to your
Java-based projects.
Sun Microsystems experts Steve Stelting and Olav Maassen
bring together today's best pattern-based techniques and
demonstrate pattern use for a variety of business systems.
This practical guide features proven techniques for all
types of patterns, from system architecture to single
classes
After briefly reviewing the fundamentals of design
patterns, the authors describe how these patterns can be
applied effectively to the Java platform. Next, they
provide a pattern catalog, organized into four major
categories—the creational, behavioral, structural,
and system patterns. In addition, they identify patterns
and present techniques for pattern use in the core Java
APIs as well as the APIs for distributed development.
APIs covered include:
- Event handling
- Collection API
- JDBC
- RMI
- CORBA
Applied Java Patterns also features a section on pattern
use in systems built with J2EE and JINI technologies, and
coverage of the servlet, JSP,
EJB, and JavaSpaces APIs.
Without a doubt, this accessible and up-to-date guide
can help you enhance your Java platform programming
skills
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.
I. 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.