Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reloading classes

 
Amer Seifeddine
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

What is the easiest or best way to reload classes while an application is running to reflect the changes? Any link?

Thanks,
Amer.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can make a new ClassLoader instance that will reload the class to make new object instances. That does nothing to change any instances that already exist, and you have to make sure that any new instances are made through the new loader. Read up on ClassLoader and give it a try. Let us know what you find!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic