mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-25 10:01:01 +03:00
20 lines
751 B
Java
20 lines
751 B
Java
package ru.gravit.launcher.server;
|
|
|
|
import ru.gravit.launcher.managers.ModulesConfigManager;
|
|
import ru.gravit.launcher.managers.SimpleModuleManager;
|
|
import ru.gravit.utils.PublicURLClassLoader;
|
|
|
|
import java.net.URL;
|
|
import java.nio.file.Paths;
|
|
import java.util.ArrayList;
|
|
|
|
public class ModulesManager extends SimpleModuleManager {
|
|
public ModulesConfigManager modulesConfigManager;
|
|
|
|
public ModulesManager(ServerWrapper wrapper) {
|
|
modules = new ArrayList<>();
|
|
modulesConfigManager = new ModulesConfigManager(Paths.get("modules-config"));
|
|
classloader = new PublicURLClassLoader(new URL[0], ClassLoader.getSystemClassLoader());
|
|
context = new ServerModuleContext(wrapper, classloader, modulesConfigManager);
|
|
}
|
|
}
|