The idea would be to keep a WeakReference for the class loader of each plug-in. If a plug-in gets removed, and this weak reference does not get enqeued after some time, that's an indicator that there's still strong reference to that class loader and a warning should be logged.
The idea would be to keep a
WeakReference
for the class loader of each plug-in. If a plug-in gets removed, and this weak reference does not get enqeued after some time, that's an indicator that there's still strong reference to that class loader and a warning should be logged.