An opinionated view on how to do dependency injection and FXML view handling in JavaFX.
image:https://img.shields.io/maven-central/v/net.rgielen/javafx-weaver[Maven Central Version,link=https://central.sonatype.com/search?q=net.rgielen.javafx-weaver]
== JavaFX-Weaver
An opinionated view on how to do dependency injection and FXML view handling in JavaFX.
Complementary Blog Posts:
Features:
@FxmlView
and let FxWeaver
handle view loading and instantiatingfx:controller
attribute in FXML], with controller classes being instantiated, autowired and fully managed by your DI framework of choicefx:include
, again with full DI supportFxControllerAndView
instances based on generic types=== Getting Started
==== Spring Boot
Add the https://github.com/rgielen/javafx-weaver/tree/master/samples/springboot-sample#spring-boot-starter[Spring Boot Starter] dependency to your project and you are all set:
==== Manual Setup
Add javafx-weaver-core
or javafx-weaver-spring
as a dependency to your project.
=== Using FxWeaver
For now, refer to the JavaDocs and the https://github.com/rgielen/javafx-weaver/tree/master/samples/springboot-sample[Spring Boot based FxWeaver Sample and Feature Demo Project].
More documentation to come.
=== License
The project is licensed under https://www.apache.org/licenses/LICENSE-2.0[Apache License V2.0].
=== Contributing
Feel free to open issues and pull requests on GitHub.
This is a side project of mine, so please don’t expect enterprise grade support.
You can find me on Twitter as well: https://twitter.com/rgielen[@rgielen]