2018-09-17 10:07:32 +03:00
|
|
|
package ru.gravit.launcher.server;
|
|
|
|
|
2018-12-20 18:45:01 +03:00
|
|
|
import ru.gravit.launcher.modules.SimpleModuleManager;
|
|
|
|
import ru.gravit.utils.PublicURLClassLoader;
|
|
|
|
|
2018-09-17 10:07:32 +03:00
|
|
|
import java.net.URL;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
2018-09-17 13:14:59 +03:00
|
|
|
public class ModulesManager extends SimpleModuleManager {
|
2018-09-17 10:07:32 +03:00
|
|
|
public ModulesManager(ServerWrapper wrapper) {
|
|
|
|
modules = new ArrayList<>();
|
2018-09-22 17:22:39 +03:00
|
|
|
classloader = new PublicURLClassLoader(new URL[0], ClassLoader.getSystemClassLoader());
|
2018-09-17 10:07:32 +03:00
|
|
|
context = new ServerModuleContext(wrapper, classloader);
|
|
|
|
}
|
|
|
|
}
|