2018-09-17 10:07:32 +03:00
|
|
|
package ru.gravit.launcher.server;
|
|
|
|
|
2018-09-19 16:14:50 +03:00
|
|
|
import ru.gravit.launcher.Launcher;
|
2018-09-17 10:07:32 +03:00
|
|
|
import ru.gravit.launcher.modules.ModuleContext;
|
2018-09-19 16:14:50 +03:00
|
|
|
import ru.gravit.launcher.modules.ModulesManagerInterface;
|
2018-12-20 18:45:01 +03:00
|
|
|
import ru.gravit.utils.PublicURLClassLoader;
|
2018-09-17 10:07:32 +03:00
|
|
|
|
|
|
|
public class ServerModuleContext implements ModuleContext {
|
2018-09-22 17:22:39 +03:00
|
|
|
public final PublicURLClassLoader classLoader;
|
2018-09-17 10:07:32 +03:00
|
|
|
public final ServerWrapper wrapper;
|
|
|
|
|
2018-09-22 17:22:39 +03:00
|
|
|
public ServerModuleContext(ServerWrapper wrapper, PublicURLClassLoader classLoader) {
|
2018-09-17 10:07:32 +03:00
|
|
|
this.classLoader = classLoader;
|
|
|
|
this.wrapper = wrapper;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Type getType() {
|
|
|
|
return Type.SERVER;
|
|
|
|
}
|
2018-09-19 16:14:50 +03:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public ModulesManagerInterface getModulesManager() {
|
|
|
|
return Launcher.modulesManager;
|
|
|
|
}
|
2018-09-17 10:07:32 +03:00
|
|
|
}
|