BakeoutController-Basic  0.1
A Controller for the Omicron vacuum chamber
UserInterfaceConfiguration.java
1 package ui;
2 
3 import javafx.stage.Stage;
4 import org.springframework.context.annotation.*;
9 
26 @Configuration
27 @Lazy
32  private Stage primaryStage;
33 
37  public void setPrimaryStage(Stage primaryStage) {
38  this.primaryStage = primaryStage;
39  }
40 
44  @Bean
45  @Scope("prototype")
47  return new ContextAwareFXMLLoader();
48  }
49 
53  @Bean
54  @Scope("prototype")
56  return new DeviceSetupController();
57  }
58 
62  @Bean
63  @Scope("prototype")
65  return new SequenceController();
66  }
67 
68  @Bean
69  @Scope("prototype")
70  public DeviceListController deviceListController(){
71  return new DeviceListController();
72  }
73 
74  @Bean
75  @Scope("prototype")
76  public ResultController resultController(){
77  return new ResultController();
78  }
79 
83  @Bean
84  @Scope("singleton")
86  return new AutowiredFXMLStage(
87  getClass().getResource("/Application.fxml"),
88  primaryStage
89  );
90  }
91 
92 
93 }
DeviceSetupController deviceSetupController()
Git Repo