2019-06-02 05:03:08 +03:00
|
|
|
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;
|
|
|
|
|
2018-09-17 13:14:59 +03:00
|
|
|
public class ClientModuleManager extends SimpleModuleManager {
|
2019-08-21 14:38:54 +03:00
|
|
|
|
|
|
|
public ClientModuleManager(LauncherEngine engine) {
|
2018-09-17 10:07:32 +03:00
|
|
|
context = new ClientModuleContext(engine);
|
|
|
|
modules = new ArrayList<>();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2019-01-18 01:30:55 +03:00
|
|
|
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
|
2019-01-18 01:30:55 +03:00
|
|
|
public void loadModuleFull(URL jarpath) {
|
2018-09-17 10:07:32 +03:00
|
|
|
throw new SecurityException("Custom JAR's load not allowed here");
|
|
|
|
}
|
|
|
|
}
|