Launcher/Launcher/src/main/java/pro/gravit/launcher/client/ClientModuleManager.java

26 lines
699 B
Java
Raw Normal View History

package pro.gravit.launcher.client;
2018-09-17 10:07:32 +03:00
2018-12-20 18:45:01 +03:00
import java.net.URL;
import java.util.ArrayList;
2019-06-03 10:58:10 +03:00
import pro.gravit.launcher.LauncherEngine;
import pro.gravit.launcher.managers.SimpleModuleManager;
public class ClientModuleManager extends SimpleModuleManager {
public ClientModuleManager(LauncherEngine engine) {
2018-09-17 10:07:32 +03:00
context = new ClientModuleContext(engine);
modules = new ArrayList<>();
}
@Override
public void loadModule(URL jarpath, String classname) {
2018-09-17 10:07:32 +03:00
throw new SecurityException("Custom JAR's load not allowed here");
}
@Override
public void loadModuleFull(URL jarpath) {
2018-09-17 10:07:32 +03:00
throw new SecurityException("Custom JAR's load not allowed here");
}
}