Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cathive/fx-guice
Google Guice integration for FXML-based JavaFX applications
https://github.com/cathive/fx-guice
dependency-injection fxml guice javafx
Last synced: about 1 month ago
JSON representation
Google Guice integration for FXML-based JavaFX applications
- Host: GitHub
- URL: https://github.com/cathive/fx-guice
- Owner: cathive
- License: apache-2.0
- Created: 2012-08-24T07:39:38.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2019-01-28T14:15:41.000Z (almost 6 years ago)
- Last Synced: 2024-09-28T12:04:55.015Z (about 2 months ago)
- Topics: dependency-injection, fxml, guice, javafx
- Language: Java
- Homepage: http://cathive.github.io/fx-guice/
- Size: 4.38 MB
- Stars: 64
- Watchers: 11
- Forks: 14
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
fx-guice
========[![Build Status](https://travis-ci.org/cathive/fx-guice.png)](https://travis-ci.org/cathive/fx-guice)
This library provides some useful classes that help you integrate
Google Guice into your JavaFX based applications.The idea for that class was born after I read an article on
fxexperience.com (http://fxexperience.com/2011/10/fxml-guice/).
Therefore,... credits go to 'Richard Bair' for the initial idea.A compiled and ready-to-use version of this library can be found in the
Sonatype OSS Maven Repository (oss.sonatype.org). To use the library
in your Maven based projects just add the following lines to your
'pom.xml':```xml
com.cathive.fx
fx-guice
${fx-guice.version}```
In your project all you need to do is create an application class
that extends `com.cathive.fx.guice.GuiceApplication` instead of the
`javafx.application.Application` class that ships with JavaFX.Next step: instead of using `javafx.fxml.FXMLLoader` to load FXML files
you use `com.cathive.fx.guice.GuiceFXMLLoader`... that's basically it!