adam bien's blog

afterburner.fx v1.7.0 "Branch Terminator" Released 📎

afterburner.fx is an opinionated MVP framework with built-in, conventional Dependency Injection implemented by a single class.

The v1.7.0 release comes with swappable DI mechanism. An extensible DI enables the contributors to implement project-specific conventions and will so eliminate many open pull request. The release v1.7.0 also deprecates the "Top Gun" branch.

To create your own Injector:

  1. Implement the functional interface: com.airhacks.afterburner.injection.PresenterFactory
  2. Specify the fully qualified name of the implementation in the file: META-INF/services/com.airhacks.afterburner.injection.PresenterFactory

A no-op injector already ships with afterburner.fx as a part of the unit test:


public class DebuggingInjector implements PresenterFactory {

    @Override
    public <T> T instantiatePresenter(Class<T> clazz, Function<String, Object> injectionContext) {
        System.out.println("--- clazz " + clazz + " context " + injectionContext);
        return Injector.instantiatePresenter(clazz, injectionContext);
    }

}

Checkout github.com/AdamBien/afterburner.fx. The v1.7.0 is already available in maven central:

<dependency>
  <groupId>com.airhacks</groupId>
  <artifactId>afterburner.fx</artifactId>
  <version>1.7.0</version>
</dependency>

Also take a look at: github.com/Naoghuman/NetBeansIDE-AfterburnerFX-Plugin

See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting. Is Munich's airport too far? Learn from home: airhacks.io.