Overview

Annotate classes with @Singleton / @Factory and avaje-inject will generate source code to "wire them".

1. @Singleton / @Factory

Put @Singleton on beans that we want avaje-inject to wire.

We can use @Factory/@Bean to programmatically create dependencies when they have interesting construction logic (e.g. construction depends on system/environment properties etc - like Spring @Configuration).

{@code
Packages 
Package Description
io.avaje.inject
Avaje Inject API - see BeanScope.
io.avaje.inject.aop
Support for AOP Aspects.
io.avaje.inject.spi
Building bean scope objects expected to only be used by generated code.