Make client use most recent loader interface
This commit is contained in:
parent
c3f6505a8f
commit
b534b92456
2 changed files with 4 additions and 3 deletions
|
@ -11,10 +11,10 @@ public class LoadHandler {
|
|||
|
||||
public static TCN data = new TCN();
|
||||
|
||||
public static void loaded(Map<String, String> data) {
|
||||
public static void loaded(Map<String, String> data, Class<?> loaderClass) {
|
||||
LoadHandler.data = TCN.readMap(data);
|
||||
try {
|
||||
Class.forName("de.com.baseband.launcher.Tweaker").getMethod("loaded", Class.class).invoke(null, BaseBand.class);
|
||||
loaderClass.getMethod("loaded", Class.class).invoke(null, BaseBand.class);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package de.com.baseband.launcher.classloader;
|
||||
|
||||
import de.com.baseband.launcher.Tweaker;
|
||||
import de.com.baseband.launcher.url.URLWrapper;
|
||||
import de.com.baseband.launcher.util.Util;
|
||||
import de.tudbut.parsing.TCN;
|
||||
|
@ -92,7 +93,7 @@ public class CustomClassLoader extends ClassLoader implements Util {
|
|||
public void informClient(TCN clientData) {
|
||||
LOGGER.info("Informing client that it has been loaded.");
|
||||
try {
|
||||
this.loadClass("de.com.baseband.prod.LoadHandler").getDeclaredMethod("loaded", Map.class).invoke(null, clientData.toMap());
|
||||
this.loadClass("de.com.baseband.prod.LoadHandler").getDeclaredMethod("loaded", Map.class, Class.class).invoke(null, clientData.toMap(), Tweaker.class);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue