diff --git a/common/implementation/bootstrap-addon-loader/src/main/java/com/dfsek/terra/addon/AddonClassLoader.java b/common/implementation/bootstrap-addon-loader/src/main/java/com/dfsek/terra/addon/AddonClassLoader.java deleted file mode 100644 index 9dc096dd2..000000000 --- a/common/implementation/bootstrap-addon-loader/src/main/java/com/dfsek/terra/addon/AddonClassLoader.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * This file is part of Terra. - * - * Terra is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Terra is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Terra. If not, see . - */ - -package com.dfsek.terra.addon; - -import java.net.URL; -import java.net.URLClassLoader; - - -public class AddonClassLoader extends URLClassLoader { - static { - ClassLoader.registerAsParallelCapable(); - } - - public AddonClassLoader(URL[] urls, ClassLoader parent) { - super(urls, parent); - } -} diff --git a/common/implementation/bootstrap-addon-loader/src/main/java/com/dfsek/terra/addon/BootstrapAddonLoader.java b/common/implementation/bootstrap-addon-loader/src/main/java/com/dfsek/terra/addon/BootstrapAddonLoader.java index 0b53203a1..c35738e44 100644 --- a/common/implementation/bootstrap-addon-loader/src/main/java/com/dfsek/terra/addon/BootstrapAddonLoader.java +++ b/common/implementation/bootstrap-addon-loader/src/main/java/com/dfsek/terra/addon/BootstrapAddonLoader.java @@ -44,7 +44,7 @@ public class BootstrapAddonLoader implements BootstrapBaseAddon loadAddon(Path addonPath, ClassLoader parent) { + private BootstrapBaseAddon loadAddon(Path addonPath, BootstrapAddonClassLoader parent) { logger.debug("Loading bootstrap addon from JAR {}", addonPath); try(JarFile jar = new JarFile(addonPath.toFile())) { String entry = jar.getManifest().getMainAttributes().getValue("Terra-Bootstrap-Addon-Entry-Point"); @@ -55,10 +55,8 @@ public class BootstrapAddonLoader implements BootstrapBaseAddon addon)) { throw new AddonLoadException(