public class Controller { ⎗ ✓ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25@Inject private XyService xyService; @Inject @Bundle private ResourceBundle rb; @Inject private Event<FooBar> foobarEvent; public void on(@Observes Event<OtherEvent> event) { ... } @Inject @Bundle("bundles/Application") private final FXMLLoader fxmlLoader; public void start(final Stage stage, final Application.Parameters parameters) throws Exception { final Parent mainWindow = fxmlLoader.load(getClass().getResourceAsStream("application.fxml")); final Scene scene = new Scene(mainWindow); stage.setScene(scene); stage.show(); } }