O'Reilly logo

JavaServer Faces by Hans Bergsten

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing the Business Logic Classes

The expense report application contains three business logic classes, shown in Figure 5-2. These classes have no dependencies on JSF (or any other presentation technology, for that matter).

The business logic classes
Figure 5-2. The business logic classes

A Report contains ReportEntry instances, and Report instances are saved in a ReportRegistry, which is an abstract class with concrete subclasses for different storage medias. The FileReportRegistry implements a simple filesystem-based storage facility.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required