Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to remove dispatcher?

 
wei ning
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Below is part of my coding, i do to remove the dispatcher by using the code during the "Hello" method. But now, i would like to remove the dispatcher during the "anotherMethod" method after the "anotherMethod" have been executed. Can it be done? How can i make it? Can anyone help me? Thanks.




Thanks for your help!
Ning
 
Torgil Zethson
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it can be done. Just store a reference to the dispatcher as an instance member of your class:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic