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 24 avaje-inject issues
Sort by recently updated
recently updated
newest added

Documentation that still is missing: @Prototype AOP Aspects Plus [design] documentation for, Why avaje-inject does not have ... Does not have "lazy singleton" Does not have @Value (why we expect...

How to make Bean is lazy, Maybe we can be using Supplier and at runtime Supplier.get() to inject instance

- Changes the `Module` interface to use `Type[]` instead of `Class[]` - Updates generator to allow generic types to be added to auto provides/requires via `GenericType` - updates the maven/gradle...

enhancement
reason-for-version-bump

The new maven plugin can register services post compilation, so we can disable module-info validation when we detect it's presence. also the new plugin solves #496

So the thought here is that we can directly read the `requires` and `provides` via the external provider and determine the wiring order in the generator. Then we can generate...

enhancement

- Adds the `Observer`, `Event`, and `ObserverManager` classes for registering observer methods and firing events. - Adds new `@Observes` annotation and generates code to register in DI classes - Adds...

enhancement

It seems exceedingly unlikely that the JDK devs will add a mechanism to allow modular applications to register services via annotation processing like we can in the classpath. I'm thinking...

So there I am looking at the Jakarta CDI spec, and I find out about this useful technique available to them. We could define an SPI for an event manager...

enhancement

Currently, bean DI classes are created and their dependencies validated at compile time, but determining the wiring order of multi module projects is still performed at runtime. I think we...

enhancement