Guice Integration for JavaFX

Integration of the Google Guice framework for JavaFX applications

License

License

Categories

Categories

GUI User Interface Guice Application Layer Libs Dependency Injection
GroupId

GroupId

com.cathive.fx
ArtifactId

ArtifactId

fx-guice
Last Version

Last Version

8.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Guice Integration for JavaFX
Integration of the Google Guice framework for JavaFX applications
Project URL

Project URL

https://github.com/cathive/fx-guice/
Project Organization

Project Organization

The Cat Hive Developers
Source Code Management

Source Code Management

https://github.com/cathive/fx-guice/

Download fx-guice

How to add to project

<!-- https://jarcasting.com/artifacts/com.cathive.fx/fx-guice/ -->
<dependency>
    <groupId>com.cathive.fx</groupId>
    <artifactId>fx-guice</artifactId>
    <version>8.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.cathive.fx/fx-guice/
implementation 'com.cathive.fx:fx-guice:8.0.0'
// https://jarcasting.com/artifacts/com.cathive.fx/fx-guice/
implementation ("com.cathive.fx:fx-guice:8.0.0")
'com.cathive.fx:fx-guice:jar:8.0.0'
<dependency org="com.cathive.fx" name="fx-guice" rev="8.0.0">
  <artifact name="fx-guice" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.cathive.fx', module='fx-guice', version='8.0.0')
)
libraryDependencies += "com.cathive.fx" % "fx-guice" % "8.0.0"
[com.cathive.fx/fx-guice "8.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
com.google.inject : guice jar 3.0

test (2)

Group / Artifact Type Version
org.mockito : mockito-core jar 1.10.8
org.testng : testng jar 6.8.8

Project Modules

There are no modules declared in this project.

fx-guice

Build Status

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':

<dependency>
  <groupId>com.cathive.fx</groupId>
  <artifactId>fx-guice</artifactId>
  <version>${fx-guice.version}</version>
</dependency>

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!

com.cathive.fx

The Cat Hive Developers

Versions

Version
8.0.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.0
1.1.0
1.0.0