Move class initialization into new method

This commit is contained in:
JeremyStar™ 2024-06-09 19:03:17 +02:00
parent 9d8b6a8e08
commit 8a0c4f1f03
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -89,10 +89,7 @@ public class Engine {
EngineConfiguration.getInstance().loadConfiguration();
// Initialize classes
// Sorted in rough order of dependence
new EngineInformation();
new PlaceholderEngine();
new ShortcodeConverter();
initializeClasses();
// Populate crash content
populateCrashContent();
@ -107,6 +104,18 @@ public class Engine {
logger.info("Initialized sos!engine v%engine_version% in " + initTime + "ms");
}
/**
* Initializes all classes.
*
* @since 1-alpha0
*/
protected void initializeClasses() {
// Sorted in rough order of dependence
new EngineInformation();
new PlaceholderEngine();
new ShortcodeConverter();
}
/**
* This method populates the Crash Handler's content with the default set of content.
*