|
|
|
|
|
|
|
|
|
| |
This is done because both controllers can and should have multiple
instances. The controllers are loaded using SpringFXMLLoader in order
to provide constructor dependency injection for possible dependencies.
Fxml files/controllers loaded this way need to be @Controller
annotated. The default scope for a controller is singleton, which only
allows one instantiation. 'Prototype' creates a new instance each time
requested.
|