install(new ExtensionModule(space, false));
super.configure();
}
private ClassSpace createClassSpace() {
URLClassSpace space;
if (plugin.classLoader instanceof PluginClassLoader) {
PluginClassLoader cl = (PluginClassLoader) plugin.classLoader;
space = new URLClassSpace(cl, cl.getURLs()); // urls logged from PluginWrapperFactory
}
else {
log.warn("Expected plugin to have PluginClassLoader; instead found: {}", plugin.classLoader.getClass().getName());
space = new URLClassSpace(plugin.classLoader);
}
return space;
}