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;
2018-12-20 18:45:01 +03:00
import ru.gravit.launcher.modules.SimpleModuleManager;
import ru.gravit.utils.PublicURLClassLoader;
2018-09-17 10:07:32 +03:00
import java.net.URL;
import java.util.ArrayList;
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);
}
}