Launcher/ServerWrapper/src/main/java/ru/gravit/launcher/server/ServerModuleContext.java
2018-09-25 20:33:26 +07:00

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;
}
}