Avaje Inject

April 22, 2026 · View on GitHub

This directory contains the reference documentation and step-by-step guides for avaje-inject.

Key files

FileContents
LIBRARY.mdFull library reference — identity, API, annotations, use cases, performance, and AI agent instructions. Start here for capability questions.
guides/README.mdIndex of all step-by-step guides.

Guides

GuideWhat it covers
guides/creating-beans.mdAnnotate classes as beans with @Singleton, @Prototype, and @Factory
guides/dependency-injection.mdInject dependencies via constructor, field, and method injection
guides/factory-methods.mdUse @Factory + @Bean methods to create and configure beans
guides/lifecycle-hooks.mdInitialize and clean up beans with @PostConstruct and @PreDestroy
guides/qualifiers.mdDisambiguate multiple implementations with @Named and @Primary
guides/testing.mdWrite integration tests with avaje-inject-test and @InjectTest
guides/native-image.mdBuild GraalVM native images — zero extra configuration needed

Agent navigation tip

  • Capability / API questions → open LIBRARY.md
  • How-to / task questions → open the relevant guide above