QBeans JDO: Building the AddressBook "Business Domain Model"
Previous | Next
The Business Domain Model should implement pluggable services to satisfy each of the following additional requirements
  • Search information services to find potential addresses for a person
  • Validate an address by some algorithm
  • Validate postal code based on the country
Three services are added to create the Business Domain Model as in the following class diagram. These are the "FindAddressesService", "AddressValidationService", and "PostalCodeValidationService" classes that respond to the above requirements. Note that the "use" references are logical and do not result in a concrete coupling between the service and the business object.

Figure 2 - Business Domain Model with interfaces for external services



Previous | Next