public void removeImport(ModuleImpl module) { // TODO: this doesn't hide removed module from // other modules that depend on this module. // but the notion of adding dependencies at runtime is broken anyway. if (dependencies.contains(module)) { dependencies.remove(module); getPrivateClassLoader().removeDelegate(module.getClassLoader()); } }
public void removeImport(ModuleImpl module) { // TODO: this doesn't hide removed module from // other modules that depend on this module. // but the notion of adding dependencies at runtime is broken anyway. if (dependencies.contains(module)) { dependencies.remove(module); getPrivateClassLoader().removeDelegate(module.getClassLoader()); } }
getPrivateClassLoader().addDelegate(m.getClassLoader());
getPrivateClassLoader().addDelegate(m.getClassLoader());