Launcher/ServerWrapper/src/main/java/ru/gravit/launcher/server/ModulesManager.java

16 lines
502 B
Java
Raw Normal View History

2018-09-17 10:07:32 +03:00
package ru.gravit.launcher.server;
import java.net.URL;
import java.util.ArrayList;
import ru.gravit.utils.PublicURLClassLoader;
import ru.gravit.launcher.modules.SimpleModuleManager;
2018-09-17 10:07:32 +03:00
public class ModulesManager extends SimpleModuleManager {
2018-09-17 10:07:32 +03:00
public ModulesManager(ServerWrapper wrapper) {
modules = new ArrayList<>();
classloader = new PublicURLClassLoader(new URL[0], ClassLoader.getSystemClassLoader());
2018-09-17 10:07:32 +03:00
context = new ServerModuleContext(wrapper, classloader);
}
}