JavaFX custom controller factory
I have been experimenting with the FXMLLoader and using the setControllerFactory method using a custom Callback<P,R> implementation. The ORACLE documentation says the following: An implementation might return a null value to indicate that it does not or cannot create a controller of the given type; in this case, the default controller construction mechanism will be employed by the loader. The result I want to achieve is that I can use a dependency injection framework to create any controllers that require parameters but I will let the FXMLLoader load any controllers that do not require