-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(ModuleManager): factor initiliaztion code to multiple methods #4540
Conversation
@@ -79,16 +79,20 @@ public ModuleManager(String masterServerAddress, List<Class<?>> classesOnClasspa | |||
|
|||
loadModulesFromApplicationPath(pathManager); | |||
|
|||
ensureModulesDependOnEngine(engineModule); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wondered why this is important, and found #1450
It's not a worry that the engine
module wouldn't be loaded without it. It's about ordering: some things run in an order derived from the dependency tree, and we want to make sure engine is at the root of it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this as comment to ensureModulesDependOnEngine
for later reference.
engine/src/main/java/org/terasology/engine/module/ModuleManager.java
Outdated
Show resolved
Hide resolved
@@ -79,16 +79,20 @@ public ModuleManager(String masterServerAddress, List<Class<?>> classesOnClasspa | |||
|
|||
loadModulesFromApplicationPath(pathManager); | |||
|
|||
ensureModulesDependOnEngine(engineModule); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this as comment to ensureModulesDependOnEngine
for later reference.
Refactoring in anticipation of changes for gestalt v7.
I think these are all strict refactors, minimal testing required.
Open to feedback about where these methods should be ordered in the class file.
Outstanding before merging