Skip to the content.

Comparison

FactoryFX is a replacement for:

Comparison to other dependency injection frameworks

To implement dependency injection we need 2 layers of code.

Most existing dependency injection frameworks try to automate the factory code. To achieve this, the frameworks usually scan the classpath, create a dependency graph and finally create the business object.

This approach has some disadvantages:

FactoryFX

As a replacement for annotations FactoryFX use a functional java api with factories. The user creates factories following a simple structure convention. The factories also provide the dependencies and lifecycle control.

The programmatic API has the following advantages:

Advantages: