Package io.avaje.inject
Avaje Inject API - see
SystemContext and BeanContext.-
Interface Summary Interface Description BeanContext Holds beans created by dependency injection.BeanContextBuilder Build a bean context with options for shutdown hook and supplying test doubles. -
Class Summary Class Description BeanEntry<T> A bean entry in the context with priority and optional name.SystemContext Provides a global system wide BeanContext that contains all the bean contexts in the classpath. -
Annotation Types Summary Annotation Type Description Bean Marks methods on a@Factorybean that create dependencies.ContextModule Used to explicitly name a bean context and optionally specify if it depends on other bean contexts.Factory A singleton bean that has methods marked with the@Beanannotation.PostConstruct ThePostConstructannotation is used on a method that needs to be executed after dependency injection is done to perform any initialization.PreDestroy ThePreDestroyannotation 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 ThePriorityannotation can be applied to classes to indicate in what order they should be returned via @SystemContext.getBeansByPriority(Class).Secondary Identify a bean as being the least preferred bean to inject when multiple beans implement the intended interface.