Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Java design patterns 201

Paul Monday, Developer
Paul Monday is a contributing developerWorks author.

Summary:  Design patterns extend far beyond those described by the famous Gang of Four. In this tutorial, you will find out just how much. Veteran developer Paul Monday begins his discussion by exploring resources that newcomers to the study of design patterns often miss. Then he uses design patterns from these resources to implement a simple application. Finally, he switches his focus to how design patterns can help you to better understand software design and guides you through the reverse-engineering of a piece of technology, focusing on how it works from the perspective of patterns.

Date:  09 Apr 2002
Level:  Introductory PDF:  A4 and Letter (241 KB | 41 pages)Get Adobe® Reader®

Activity:  27783 views
Comments:  

About this tutorial

What is this tutorial about?

The developerWorks tutorial series on design patterns began with the tutorial "Java design patterns 101," which explored the history and common structure of published design patterns for the Java language. As a general introduction, that tutorial focused on some of the most well-known design patterns, those devised by the so-called Gang of Four. The Gang of Four (GOF) patterns apply to general computing problems and can be implemented for a variety of applications and systems. The GOF patterns are ubiquitous: in any modern, well-designed system, you will likely see one or more of these patterns implemented. Many people consider themselves well-versed in object-oriented design patterns if they know the GOF patterns. But design patterns extend far beyond the GOF.

In this tutorial, you will find out just how much you don't know about design patterns. We'll start by exploring a number of resources that newcomers to the study of design patterns often miss. These resources provide patterns that are invaluable to various domains of computing, such as business applications, Web applications, and even Web design. Next, we'll use design patterns found through some of these resources to implement a simple application that allows a user to order movies from a Web site. After we've implemented the movie-ordering application, we'll move into the third part of the tutorial, where we'll focus on how design patterns can help us to better understand software design. To see for ourselves how the knowledge of design patterns translates to deeper understanding of software, we'll reverse-engineer a piece of technology, focusing on how it works from the perspective of patterns.

By the end of this tutorial, you will have a much greater appreciation of the wealth of knowledge available in design patterns. You will also know how to locate and disseminate the knowledge given to us in the GOF patterns, as well as several Java design pattern implementations outside of the realm of the GOF. Throughout the tutorial, we'll emphasize the ways that design patterns can assist you in learning about software.


Should I take this tutorial?

This tutorial expands upon the Java design patterns 101 tutorial, examining a broad range of design pattern resources and several specific design patterns in detail and implementation.

Although this tutorial is entirely Java-based, design pattern documentation outside of this tutorial is often in C++. To extend your knowledge of the patterns presented here, you will likely need an average skill level in C++.

See Resources for a listing of tutorials, articles, and other references that extend the material presented here.


Code samples and installation requirements

We'll use the following technologies and resources to complete the exercises in this tutorial:

  • A heavily referenced set of text and online resources for design pattern documentation.

  • The Java 2 platform, Standard Edition to implement the tutorial's two simple business pattern examples.

  • A standard editor and a JDK to compile and run the examples.

  • Tomcat 4.0.3 Servlet Engine to deploy the Web application and JSP Tag library examples. (Note that Tomcat has all the classes you will need for the J2EE portion of this tutorial.)

See Resources to download any of the above technologies that you do not have. I also suggest that you download the binaries and source code for the examples before you start the tutorial.

1 of 10 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Java technology
ArticleID=131978
TutorialTitle=Java design patterns 201
publish-date=04092002
author1-email=
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).