@Singleton public class MvvmfxProducer extends Object
| Constructor and Description |
|---|
MvvmfxProducer() |
| Modifier and Type | Method and Description |
|---|---|
javafx.application.Application.Parameters |
produceApplicationParameters() |
javafx.application.HostServices |
produceHostServices() |
NotificationCenter |
produceNotificationCenter() |
javafx.stage.Stage |
producePrimaryStage() |
void |
setApplicationParameters(javafx.application.Application.Parameters parameters) |
void |
setHostServices(javafx.application.HostServices hostServices)
The
HostServices instance is only available
in the application class. |
void |
setPrimaryStage(javafx.stage.Stage primaryStage) |
@Produces public NotificationCenter produceNotificationCenter()
public void setHostServices(javafx.application.HostServices hostServices)
HostServices instance is only available
in the application class. Therefore it needs to be set from there to be
available for injection.hostServices - the instance of hostServices from the Application.@Produces public javafx.application.HostServices produceHostServices()
@Produces public javafx.application.Application.Parameters produceApplicationParameters()
public void setApplicationParameters(javafx.application.Application.Parameters parameters)
public void setPrimaryStage(javafx.stage.Stage primaryStage)
@Produces public javafx.stage.Stage producePrimaryStage()
Copyright © 2015 Saxonia Systems AG. All rights reserved.