Back to Java Users Group Home Print this page

Java Users Group

November 2002 Meeting Information

November 12, 2002
A Practical Use of the Factory Design Pattern

This month's meeting will be a source code review of an application utilizing the Factory design pattern. Design patterns are "simple and elegant solutions to specific problems in object-oriented software design." 1 The Factory Pattern is used to return an instance of a class based on the data provided. The instantiated class is usually part of a class hierarchy containing a base class and one or more derived classes performing different slightly different tasks. The application is based on the Factory Pattern chapter found in Java Design Patterns - A Tutorial written by James W. Cooper. It displays a frame where a person's name can be input in either in "{firstName} {lastName}" or "{lastName}, {firstName}" format, and will be parsed correctly upon clicking the "Compute" button.

Namer Divider Window No. 1 Namer Divider Window No. 2

1 Erich Gamma...[et al.]. Design Patterns - Elements of Reusable Object-Oriented Software, 1995

Meetings are held every second Tuesday of the month at the Scotch Plains Rescue Squad second floor meeting hall starting promptly at 7:30pm. Meetings are open to the public, and visitors are encouraged to join ACGNJ.

SIG Leader Mike Redlich
E-Mail mike@redlich.net
Phone: (908) 246-0410