avaje-inject icon indicating copy to clipboard operation
avaje-inject copied to clipboard

Dependency injection via APT (source code generation) ala "Server-Side Dagger DI"

Results 27 avaje-inject issues
Sort by recently updated
recently updated
newest added

This is an idea I had for a while, even with other frameworks, For example, IntelliJ has plugins for Jakarta EE APIs providing special analysis support, as well as plugins...

enhancement

I am wondering if it is possible to support the next configuration ```java @Factory public class Configuration { @Bean public Jdbi jdbi() { return Jdbi.create(dataSource); } @Bean @Named("asyncJdbi") public Jdbi...

Makes publishing events more CDI-like. The generator will now create a publisher class when it sees `Event` injected and a generated impl doesn't already exist. - Remove ApplicationEvent Annotation -...

enhancement
refactor

Adds a similar annotation to `@Nullable` such that compile time validations can be disabled for beans not managed by Inject, but will still fail at runtime if the bean is...

enhancement

first pass at option 4 of #543 - bean entries can now track the source module - if all other resolutions fail prefer beans originating from the same module

enhancement

Consider next configuration ```java @Qualifier @Retention(RUNTIME) @Target({TYPE}) public @interface Accepts { PaymentMethod value(); } ``` ```java @Singleton @Accepts(PaymentMethod.VISA) public class VisaStore implements Store { } ``` ```java @Singleton @Accepts(PaymentMethod.MASTERCARD) public...

Refer: https://github.com/spring-projects/spring-framework/commit/a8fb16b47cc64d77ffdd83275aa7038a92cef767 ```java /** * Is this bean a candidate for getting autowired into some other bean based on * the plain type, without any further indications such as a...

Adds all the backwards compatibility stuff from #566 minus the SPI changes

enhancement
refactor