java.lang.Object
no.ntnu.principes.util.ScreenRegistry
Handles automatic registration of application screens.
Uses reflection to locate and register all screen classes in the view package.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregisterScreens(ScreenController controller) Automatically discovers and registers all screen classes with the controller.
-
Constructor Details
-
ScreenRegistry
public ScreenRegistry()
-
-
Method Details
-
registerScreens
Automatically discovers and registers all screen classes with the controller. Scans for classes extending BaseScreen and instantiates them.- Parameters:
controller- The controller to register screens with- Throws:
RuntimeException- If registration fails due to reflection or instantiation errors
-