• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About the lock&unlock method .

 
Zhou Can
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think we need not change these method in data.class . I means let these methods' body be blank . Any body's design is agree with me ?
 
Jawad Kakar
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a LockManager class where I have Lock() and unLock() method implemented, and I call them in RemoteDataAccess class.
LockManager does not extends any thing in my desing.
Jawad
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, Zhou, I think a lot of us agree with you completely. If you have a LockManager then you do not need to put any code in the Data classes lock and unlock methods.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic