Skip to content

evacchi/class-reloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

class-reloader

Simple example of a Java ClassLoader that forcibly reloads from disk each class instance

This was inspired by the answer at this StackOverflow answer. Instead of loading from bin/ this is a complete, generalized example that tries to reload a class using its full path, as given by the system (to be precise, the Thread.currentThread()) class loader.

You can try the example by editing class reloader.A in you favorite editor (this is a Netbeans project) while running the provided Start class as your main. The example will reload class A each second and execute the updated constructor.

About

Simple example of a Java ClassLoader that forcibly reloads from disk each class instance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages