I need to check from the Locking class whether a record exists in that data file as well as if the record is deleted or not. Personally I feel it should be checked within the FileAccess class and not within the Locking class - am I right in saying this?
SCJP 6.0(95%), SCWCD 5(94%), SCJD (working on B&S v.2.3.1)
The main characteristic of my application is simplicityPieter Jacobs wrote:Roel, did you make the Data class a Singleton
Is it still considered good design if I:
Keep the Data class, and then from the Data class checks if the lockCookie is valid in the LockManager class, and then if so, pass control to the FileAccess class?
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
Don't get me started about those stupid light bulbs. |