This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Implementing lock and unlock outside Data class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Implementing lock and unlock outside Data class" Watch "Implementing lock and unlock outside Data class" New topic
Author

Implementing lock and unlock outside Data class

Charles Dupin
Ranch Hand

Joined: Oct 18, 2002
Posts: 94
Hi guys,
Do you see any problem implementing the two methods Data.lock() and Data.unlock() outside Data class, for example in a lockManager not subclassed from Data.
The instruction says: Part of your assignment will be to enhance the Data class. You may do this by modification or subclassing, but you should document the approach and reason for your choice.
Thanks for your help.
Charles.


Charles.<br />(SCJD2)
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Actually that is the preferred method of implementing lock and unlock methods.
Good Luck
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Charles Dupin
Ranch Hand

Joined: Oct 18, 2002
Posts: 94
OK,
Thank you vm;
Charles.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Implementing lock and unlock outside Data class
 
Similar Threads
Where to use the lock/unlock methods?
HELP!! People who passed or submitted - DB interface
Unique client identification
What kind of error is this?
Class/Sequence diagram questions