Introducing Rapier

Rapier is a code generation companion library for Google Dagger. It is designed to reduce boilerplate by generating Dagger modules for fetching configuration data from common sources.

If you’ve ever written Dagger code like this:

@Component(modules = {RapierExampleComponentEnvironmentVariableModule.class})
public interface ExampleComponent {
    @EnvironmentVariable(value = "TIMEOUT", defaultValue = "30000")
    public long getTimeout();
}‍

Then Rapier can help!

You can find the official release on my consultancy site.

Leave a Reply

Your email address will not be published. Required fields are marked *