Package io.avaje.inject

Avaje Inject API - see ApplicationScope and BeanScope.
  • Interface Summary
    Interface Description
    BeanScope
    Holds beans created by dependency injection.
    BeanScopeBuilder
    Build a bean scope with options for shutdown hook and supplying test doubles.
    RequestScope
    Provides request scoped beans in addition to beans from the underlying bean scope.
    RequestScopeBuilder
    Builder for RequestScope.
    RequestScopeMatch<T>
    Match for request scope provider.
    RequestScopeProvider<T>
    Provides request scoped beans.
  • Class Summary
    Class Description
    ApplicationScope
    Provides a global system wide BeanScope that contains all the beans.
    BeanEntry<T>
    A bean entry with priority and optional name.
    SystemContext Deprecated.
  • Annotation Types Summary
    Annotation Type Description
    Bean
    Marks methods on a @Factory bean that create dependencies.
    Factory
    A singleton bean that has methods marked with the @Bean annotation.
    InjectModule
    Used to explicitly name a bean scope and optionally specify if it depends on other bean scopes.
    PostConstruct
    The PostConstruct annotation is used on a method that needs to be executed after dependency injection is done to perform any initialization.
    PreDestroy
    The PreDestroy annotation is used on a method as a callback notification to signal that the instance is in the process of being removed by the container.
    Primary
    Identify a bean as being the preferred bean to inject when multiple beans implement the intended interface.
    Priority
    The Priority annotation can be applied to classes to indicate in what order they should be returned via @ApplicationScope.listByPriority(Class).
    Request
    Marks a request scoped bean.
    Secondary
    Identify a bean as being the least preferred bean to inject when multiple beans implement the intended interface.