mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 17:11:39 +03:00
26 lines
743 B
Java
26 lines
743 B
Java
package ru.gravit.launcher.server;
|
|
|
|
import ru.gravit.launcher.Launcher;
|
|
import ru.gravit.utils.PublicURLClassLoader;
|
|
import ru.gravit.launcher.modules.ModuleContext;
|
|
import ru.gravit.launcher.modules.ModulesManagerInterface;
|
|
|
|
public class ServerModuleContext implements ModuleContext {
|
|
public final PublicURLClassLoader classLoader;
|
|
public final ServerWrapper wrapper;
|
|
|
|
public ServerModuleContext(ServerWrapper wrapper, PublicURLClassLoader classLoader) {
|
|
this.classLoader = classLoader;
|
|
this.wrapper = wrapper;
|
|
}
|
|
|
|
@Override
|
|
public Type getType() {
|
|
return Type.SERVER;
|
|
}
|
|
|
|
@Override
|
|
public ModulesManagerInterface getModulesManager() {
|
|
return Launcher.modulesManager;
|
|
}
|
|
}
|