Skip to content

refactor(ModuleManager): factor initiliaztion code to multiple methods#4540

Merged
skaldarnar merged 6 commits into
developfrom
refactor/modulemanager-init-methods
Feb 23, 2021
Merged

refactor(ModuleManager): factor initiliaztion code to multiple methods#4540
skaldarnar merged 6 commits into
developfrom
refactor/modulemanager-init-methods

Conversation

@keturn
Copy link
Copy Markdown
Member

@keturn keturn commented Feb 22, 2021

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

@keturn keturn added this to the v4.3.0 milestone Feb 22, 2021

loadModulesFromApplicationPath(pathManager);

ensureModulesDependOnEngine(engineModule);
Copy link
Copy Markdown
Member Author

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.

Copy link
Copy Markdown
Member

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.

@skaldarnar skaldarnar added the Topic: Stabilization Requests, Issues and Changes related to improving stablity and reducing flakyness label Feb 23, 2021
Comment thread engine/src/main/java/org/terasology/engine/module/ModuleManager.java Outdated

loadModulesFromApplicationPath(pathManager);

ensureModulesDependOnEngine(engineModule);
Copy link
Copy Markdown
Member

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.

@skaldarnar skaldarnar merged commit 988bd0f into develop Feb 23, 2021
@skaldarnar skaldarnar deleted the refactor/modulemanager-init-methods branch February 23, 2021 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Topic: Stabilization Requests, Issues and Changes related to improving stablity and reducing flakyness

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants