Skip to content

Part of a silly hack in my attemt to reload a demo class without paying a licence(for educational purposes only of course)

License

Notifications You must be signed in to change notification settings

noReasonException/AtlasClassLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AtlasClassLoader

Classic classloader , but you can remove the class in runtime

How this is achieved?

The idea came from Mario Ortegón(https://stackoverflow.com/users/2309/mario-orteg%c3%b3n) in this stackoverflow post -> https://stackoverflow.com/questions/148681/unloading-classes-in-java, and in brief description , every class can be removed , if his class loader is also garbage collected so the Atlas Loader just manages SingleClassLoaders , a loader witch only allowed to load one class (with call to .resolveIt()) When the removal is needed the only thing needed is to garbage collect the responsible class loader . When .removeClass(java.lang.String) is called , it is assumed that every object of this class is also garbage collected @implNote this class have no security responsibility , the specific implementation of SingleClassLoader has . the AtlasLoader is a dummy wrapper over a bunch of SingleClassLoaders, nothing more!

About

Part of a silly hack in my attemt to reload a demo class without paying a licence(for educational purposes only of course)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages