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).
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.
Get JavaServer Faces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.