You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a plain JavaFX application you can get the HostServices instances in the Application class. A typical usecase for HostServices is to open a website in the system web browser.
For CDI and Guice based applications it would be cool to be able to inject the HostServices instance.
The text was updated successfully, but these errors were encountered:
Are there any problems with using HostServices outside of the Application class that I have missed?
In respect to the "law of demeter" in my oppinion it's better to directly use the HostServices instead of injecting Application and then use "getHostServices" because I don't care where the HostServices comes from. I don't need the Application but only the HostServices for this usecase.
Besides this, making the Application injectable of cause would be possible too when it is needed for other use cases.
In a plain JavaFX application you can get the
HostServices
instances in theApplication
class. A typical usecase for HostServices is to open a website in the system web browser.For CDI and Guice based applications it would be cool to be able to inject the HostServices instance.
The text was updated successfully, but these errors were encountered: