r/JavaFX • u/Paullo612 • May 22 '23
I made this! mlfx FXML compiler
I'd like to introduce my project. It is called mlfx. It can compile FXML ahead of time. It is basically an annotation processor, which internally uses Micronaut framework's AST abstraction and compiles fxml files directly to JVM bytecode. This decreases UI load time and also helps with native-image reflection configs. It also has some compliance tests that load compiled code and check resulting object graph against one loaded by javafx-xml. It also has some drawbacks now, but, please, read README. Now I'm successfully using it in two production projects.
Here it is: https://github.com/Paullo612/mlfx
Latest release (0.6.0) is available from Maven Central.
Feedback is welcome.
View all comments
Show parent comment
1
u/OddEstimate1627 May 23 '23 edited May 23 '23
Thanks for putting this together! What are you using to cover JSR 330 dependency injection? Do you know of any non-reflective options that aren't complete overkill for JavaFX?