Hi all,
I am currently working on the URLyBird 1.2.3 assignment.
The database package is finished and I am currently starting work on the business layer.
The following design is what I am planning to implement and I would like your comments on this.
- I have an interface Operations that defines the operations that are applicable to my assignment, i.e. search records based on criteria and book a record
- Then there is a LocalOperations class that implements this interface. This class has an instance of the Data class that resides in the db package
- Also a NetworkOperations class exists that is accessible through RMI.
- There is a BusinessFactory class through which the GUI will be able to obtain an instance of an Operations-implementing class. It will provide a method with this signature: getBusinessOperations(
String dbLocation, boolean local) and will return LocalOperations or NetworkOperations class based on the local boolean.
Any remarks/improvements on this design?
Thanks in advance!