Adam Bien's Weblog

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.


NEW workshop: HTML 5 and JavaScript Essentials, Three days in April 2017: from Java EE 7 Architectures over Microservices to Performance, Troubleshooting and Monitoring
On demand workshops: Java EE 7: Bootstrap, Effective, Testing and Microservices available for streaming.

Newsletter: airhacks.news

A book about rethinking Java EE Patterns

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
realworldpatterns.com
Online Workshops
...the last 150 posts
...the last 10 comments
License