- All Known Implementing Classes:
MicronautFxmlLoaderFactory
public interface FxmlLoaderFactory
Factory interface for providing DI-enabled instances of
FXMLLoader
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.fxml.FXMLLoader
get()
Get an FXMLLoader without setting a locationjavafx.fxml.FXMLLoader
Get an FXMLLoader for the given location<T> T
getControllerFactory
(Class<T> clazz) Get the FXML controller (from a DI context)
-
Method Details
-
getControllerFactory
Get the FXML controller (from a DI context)- Type Parameters:
T
- The class type of the controller- Parameters:
clazz
- The controller class we are looking for- Returns:
- A controller instance
-
get
javafx.fxml.FXMLLoader get()Get an FXMLLoader without setting a location- Returns:
- An FXMLLoader
-
get
Get an FXMLLoader for the given location- Parameters:
location
- The location of the FXML resource- Returns:
- An FXMLLoader
-