-
Notifications
You must be signed in to change notification settings - Fork 20
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
DI container support for single view run configurations #56
Comments
Maybe this could be generalized by allowing you to call an arbitrary function before the View is executed? I'm not sure of the value though, as you might as well just execute an App endpoint in that case. How do you envision this? |
As I see, in the App.kt code, there is an argument for patching primary view if it's not set, probably another argument could be added for overriding? Right now our project is Wizard-based, so I just comment out views I'm not working on from Wizard init block and use application run configuration. |
I meant, that another argument could be added in App class, but the launched app will be it's ancestor, not the plain App. |
…tainer from command line (edvin/tornadofx-idea-plugin#56)
I added a |
Well, this looks like only a partial solution, because it's not quite consistent with Spring Boot, for example, where DI container is dependant on Spring context received from A common approach with FX apps is to run Spring Boot application in I haven't had experience writing IDEA plugins yet, but I'll try adding View overriding possibility to the "App" run configuration in near future. |
If
FX.dicontainer
is set only from application entry point then it's not initialized upon View launch leading toAssertionError
in delegates.It would come in handy to have an ability to configure DI container for View run configuration.
The text was updated successfully, but these errors were encountered: