Move class initialization into new method
This commit is contained in:
parent
9d8b6a8e08
commit
8a0c4f1f03
1 changed files with 13 additions and 4 deletions
|
@ -89,10 +89,7 @@ public class Engine {
|
||||||
EngineConfiguration.getInstance().loadConfiguration();
|
EngineConfiguration.getInstance().loadConfiguration();
|
||||||
|
|
||||||
// Initialize classes
|
// Initialize classes
|
||||||
// Sorted in rough order of dependence
|
initializeClasses();
|
||||||
new EngineInformation();
|
|
||||||
new PlaceholderEngine();
|
|
||||||
new ShortcodeConverter();
|
|
||||||
|
|
||||||
// Populate crash content
|
// Populate crash content
|
||||||
populateCrashContent();
|
populateCrashContent();
|
||||||
|
@ -107,6 +104,18 @@ public class Engine {
|
||||||
logger.info("Initialized sos!engine v%engine_version% in " + initTime + "ms");
|
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.
|
* This method populates the Crash Handler's content with the default set of content.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue