2022-08-21 22:34:55 +02:00
|
|
|
package io.gitlab.jfronny.libjf.config.impl.reflect.entrypoint;
|
|
|
|
|
|
|
|
import io.gitlab.jfronny.libjf.LibJf;
|
|
|
|
import io.gitlab.jfronny.libjf.config.impl.ConfigHolderImpl;
|
|
|
|
import io.gitlab.jfronny.libjf.unsafe.DynamicEntry;
|
|
|
|
import io.gitlab.jfronny.libjf.unsafe.UltraEarlyInit;
|
|
|
|
|
|
|
|
public class JfConfigUnsafe implements UltraEarlyInit {
|
|
|
|
@Override
|
|
|
|
public void init() {
|
2022-08-26 20:51:00 +02:00
|
|
|
DynamicEntry.execute(ConfigHolderImpl.MODULE_ID, Object.class,
|
|
|
|
s -> JfConfigReflectSafe.registerIfMissing(s.modId(), s.instance())
|
2022-08-21 22:34:55 +02:00
|
|
|
);
|
|
|
|
LibJf.LOGGER.info("Finished LibJF config entrypoint");
|
|
|
|
}
|
|
|
|
}
|