• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Context scope attributes. Thread safety.

 
Rohit Kelkar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way that the context attributes can be made thread safe?
 
Stefan Zoerner
Author
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make all attributes private and synchronize the accessor methods etc. to it via modifier.
I think it should work the same way as in standard Java.
Greetings from Hamburg,
Stefan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic