Skip to content

tezhm/Wax

Repository files navigation

License

Wax

A fast and easy to use dependency injection framework for Android and Java.

Installation

[TODO: plugin]

Usage

Fields

Add @Inject annotations to the fields you wish to inject.

public class YourClass
{
    @Inject
    private OtherClass other;
    
    ...
}

Variables

[TODO]

Config

[TODO]

Providers

Interfaces can be injected by creating @Provides methods.

public class ExampleInterfaceProvider
{
    @Provides
    public ExampleInterface make()
    {
        return new ConcreteImpl(...);
    }
}

How It Works

An extra compilation step which modifies the generated bytecode is added. Inserts initialisation code for @Inject annotated fields in the constructor.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published