-
Notifications
You must be signed in to change notification settings - Fork 1
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
Kernel for init all subsystems #1
Comments
If it's this idea good then I can implement this idea |
The kernel package is more clear, but i believe its still nessary to call register func in each subsystem, therefore no need to modity the kernel package every single time you add a new subsystem. |
Your approach is to create a new subsystem package and internally it registers this new subsystem by name afterwards it injects a new instance of this subsystems. If you would remove the registration process from the subsystem then it's cleaner and it reduces the complexity because you need to make sure at n * places you called the register function. Subsystem register processPro
Contra
Kernel register processPro
Contra
What do you think? |
It would be more clear to have a kernel to init all subsystem then isn't necessary to call in each subsystem package a hidden register function
Prototype
Caller:
Init Kernel:
Kernel:
What do you think?
The text was updated successfully, but these errors were encountered: