This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Lock Manager  RSS feed

 
Daniel Simpson
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for all of the posts lately. I have been restructuring my data class to making it a completely facade (both db and locking). I have a class called DataManager that my Data Facade calls to perform reads and writes. Here's my question, if my Data class implements the lock and unlock methods is it still considered a facade? I was thinking about making a LockManager that implements the lock and unlock and the methods that Data calls within its own lock and unlock instead of implementing its own. Is this legal without failing? I would also use a LockManager in local, too. Ideas are welcome! Thanks!
 
Dieskun Koper
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldn't call a class that implements a locking mechanism a facade.

I delegated the lock and unlock methods to a setLock method in my record class, so there should be no problem with delegating them to a lock manager class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!