From 8a0c4f1f03a34868d18721723e3dae4b2890c585 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 9 Jun 2024 19:03:17 +0200 Subject: [PATCH] Move class initialization into new method --- .../staropensource/sosengine/base/Engine.java | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/base/src/main/java/de/staropensource/sosengine/base/Engine.java b/base/src/main/java/de/staropensource/sosengine/base/Engine.java index 71ca997..20e1587 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/Engine.java +++ b/base/src/main/java/de/staropensource/sosengine/base/Engine.java @@ -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. *