Package dev.zemco.codegame.presentation
Interface IControllerFactory
public interface IControllerFactory
Produces controllers for the JavaFX views.
- Author:
- Erik Zemčík
-
Method Summary
Modifier and TypeMethodDescriptioncreateController(Class<?> controllerClass) Creates a controller for a JavaFX view based on the provided controller class.
-
Method Details
-
createController
Creates a controller for a JavaFX view based on the provided controller class. The controller should be the instance of the controller class or any of its subclass.- Parameters:
controllerClass- class of the controller to create- Returns:
- controller
- Throws:
IllegalArgumentException- ifcontrollerClassisnull
-