mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-25 01:51:00 +03:00
f00c0489a7
* [ANY] Автоматический запуск task build при запуске gradle без параметров. * [ANY] Пересмотр modulesManager. * [ANY] Закончен review libLauncher`а. * [FIX] Logger и ServerWrapper или e.printStackTrace вместо нормального логгирования. * [ANY] Разгрёб auth* и hwidHandler. * [FEATURE] Modules этап finish. + [FIX] Правки LauncherEngine. * [FIX] Проверки безопасности в loadModuleFull. + [FIX] finishModules в launchServer.
35 lines
1.1 KiB
Java
35 lines
1.1 KiB
Java
package ru.gravit.launcher.server;
|
|
|
|
import ru.gravit.launcher.Launcher;
|
|
import ru.gravit.launcher.managers.SimpleModulesConfigManager;
|
|
import ru.gravit.launcher.modules.ModuleContext;
|
|
import ru.gravit.launcher.modules.ModulesConfigManager;
|
|
import ru.gravit.launcher.modules.ModulesManager;
|
|
import ru.gravit.utils.PublicURLClassLoader;
|
|
|
|
public class ServerModuleContext implements ModuleContext {
|
|
public final PublicURLClassLoader classLoader;
|
|
public final ServerWrapper wrapper;
|
|
public final SimpleModulesConfigManager modulesConfigManager;
|
|
|
|
public ServerModuleContext(ServerWrapper wrapper, PublicURLClassLoader classLoader, SimpleModulesConfigManager modulesConfigManager) {
|
|
this.classLoader = classLoader;
|
|
this.wrapper = wrapper;
|
|
this.modulesConfigManager = modulesConfigManager;
|
|
}
|
|
|
|
@Override
|
|
public Type getType() {
|
|
return Type.SERVER;
|
|
}
|
|
|
|
@Override
|
|
public ModulesManager getModulesManager() {
|
|
return Launcher.modulesManager;
|
|
}
|
|
|
|
@Override
|
|
public ModulesConfigManager getModulesConfigManager() {
|
|
return modulesConfigManager;
|
|
}
|
|
}
|