tests now pass

This commit is contained in:
2026-05-03 14:03:31 -04:00
parent 54403c02ee
commit c5766b6fb0
29 changed files with 161 additions and 117 deletions
@@ -70,7 +70,7 @@ public class JarInJarClassLoader extends URLClassLoader {
* Creates a new jar-in-jar class loader.
*
* @param loaderClassLoader the loader plugin's classloader (setup and created by the platform)
* @param jarResourcePath the path to the jar-in-jar resource within the loader jar
* @param jarResourcePath the path to the jar-in-jar resource within the loader jar
* @throws LoadingException if something unexpectedly bad happens
*/
public JarInJarClassLoader(ClassLoader loaderClassLoader, String... jarResourcePath) throws LoadingException {
@@ -168,11 +168,11 @@ public class JarInJarClassLoader extends URLClassLoader {
/**
* Creates a new plugin instance.
*
* @param bootstrapClass the name of the bootstrap plugin class
* @param bootstrapClass the name of the bootstrap plugin class
* @param loaderPluginType the type of the loader plugin, the only parameter of the bootstrap
* plugin constructor
* @param loaderPlugin the loader plugin instance
* @param <T> the type of the loader plugin
* @param loaderPlugin the loader plugin instance
* @param <T> the type of the loader plugin
* @return the instantiated bootstrap plugin
*/
public <T> LoaderBootstrap instantiatePlugin(String bootstrapClass, Class<T> loaderPluginType, T loaderPlugin) throws LoadingException {
@@ -202,7 +202,7 @@ public class JarInJarClassLoader extends URLClassLoader {
* then returns a URL that can be used by the {@link JarInJarClassLoader}.
*
* @param loaderClassLoader the classloader for the "host" loader plugin
* @param jarResourcePath the inner jar resource path
* @param jarResourcePath the inner jar resource path
* @return a URL to the extracted file
*/
private static URL extractJar(ClassLoader loaderClassLoader, String jarResourcePath) throws LoadingException {
@@ -25,8 +25,10 @@ public interface LoaderBootstrap {
void onLoad(File dataFolder);
default void onEnable() {}
default void onEnable() {
}
default void onDisable() {}
default void onDisable() {
}
}