A B C D E F G I M N P R S T V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addChild(BeanContextFactory) - Method in interface io.avaje.inject.spi.Builder
-
Add a child context.
- addInjector(Consumer<Builder>) - Method in interface io.avaje.inject.spi.Builder
-
Add field and method injection.
- addLifecycle(BeanLifecycle) - Method in interface io.avaje.inject.spi.Builder
-
Add a lifecycle bean.
B
- Bean - Annotation Type in io.avaje.inject
-
Marks methods on a
@Factorybean that create dependencies. - BeanContext - Interface in io.avaje.inject
-
Holds beans created by dependency injection.
- BeanContextBuilder - Interface in io.avaje.inject
-
Build a bean context with options for shutdown hook and supplying test doubles.
- BeanContextFactory - Interface in io.avaje.inject.spi
-
This is the service loader interface defining the bean contexts that can be created.
- BeanEntry<T> - Class in io.avaje.inject
-
A bean entry in the context with priority and optional name.
- BeanEntry(int, T, String) - Constructor for class io.avaje.inject.BeanEntry
-
Construct with priority, name and the bean.
- BeanFactory<T,R> - Interface in io.avaje.inject.spi
-
Factory for creating a bean given a single request scope argument.
- BeanFactory2<T,R,R2> - Interface in io.avaje.inject.spi
-
Factory for creating a bean given two request scope arguments.
- BeanLifecycle - Interface in io.avaje.inject.spi
-
Lifecycle of beans via
@PostConstructand@PreDestroy. - build() - Method in interface io.avaje.inject.BeanContextBuilder
-
Build and return the bean context.
- build() - Method in interface io.avaje.inject.spi.Builder
-
Build and return the bean context.
- Builder - Interface in io.avaje.inject.spi
-
Mutable builder object used when building a bean context.
C
- candidate(Class<T>, String) - Method in interface io.avaje.inject.BeanContext
-
Return the wiring candidate bean with name and priority.
- candidate(Class<T>, String) - Method in interface io.avaje.inject.spi.Builder
-
Get a candidate dependency allowing it to be null.
- close() - Method in interface io.avaje.inject.BeanContext
-
Close the context firing any
@PreDestroymethods. - context() - Static method in class io.avaje.inject.SystemContext
-
Return the underlying BeanContext.
- ContextModule - Annotation Type in io.avaje.inject
-
Used to explicitly name a bean context and optionally specify if it depends on other bean contexts.
- create(R) - Method in interface io.avaje.inject.spi.BeanFactory
-
Create and return the bean.
- create(R, R2) - Method in interface io.avaje.inject.spi.BeanFactory2
-
Create and return the bean.
- createContext(Builder) - Method in interface io.avaje.inject.spi.BeanContextFactory
-
Create and return the BeanContext.
D
- DependencyMeta - Annotation Type in io.avaje.inject.spi
-
Hold bean dependency meta data intended for internal use by code generation (Java annotation processing).
- dependsOn() - Method in annotation type io.avaje.inject.ContextModule
-
The list of modules this context depends on.
- dependsOn() - Method in annotation type io.avaje.inject.spi.DependencyMeta
-
The list of dependencies.
- destroyMethod() - Method in annotation type io.avaje.inject.Bean
-
Specify a method to be treated like a
@PreDestroy
E
- enrich(B) - Method in class io.avaje.inject.spi.EnrichBean
-
Return the spy enhanced bean instance to use.
- enrich(T, Class<?>[]) - Method in interface io.avaje.inject.spi.Builder
-
Return a potentially enriched bean for registration into the context.
- EnrichBean<B> - Class in io.avaje.inject.spi
-
Holds Spy setup consumers for dependency injection using Mockito Spy.
- EnrichBean(Class<B>, Consumer<B>) - Constructor for class io.avaje.inject.spi.EnrichBean
F
- Factory - Annotation Type in io.avaje.inject
-
A singleton bean that has methods marked with the
@Beanannotation.
G
- Generated - Annotation Type in io.avaje.inject.spi
-
Marks source code that has been generated.
- get(Class<T>) - Method in interface io.avaje.inject.spi.Builder
-
Get a dependency.
- get(Class<T>, String) - Method in interface io.avaje.inject.spi.Builder
-
Get a named dependency.
- getBean() - Method in class io.avaje.inject.BeanEntry
-
Return the bean.
- getBean() - Method in class io.avaje.inject.spi.SuppliedBean
-
Return the bean instance to use (often a test double or mock).
- getBean(Class<T>) - Method in interface io.avaje.inject.BeanContext
-
Return a single bean given the type.
- getBean(Class<T>) - Static method in class io.avaje.inject.SystemContext
-
Return a single bean given the type.
- getBean(Class<T>, String) - Method in interface io.avaje.inject.BeanContext
-
Return a single bean given the type and name.
- getBean(Class<T>, String) - Static method in class io.avaje.inject.SystemContext
-
Return a single bean given the type and name.
- getBeans(Class<T>) - Method in interface io.avaje.inject.BeanContext
-
Return the list of beans that implement the interface.
- getBeans(Class<T>) - Static method in class io.avaje.inject.SystemContext
-
Return the list of beans that implement the interface.
- getBeansByPriority(Class<T>) - Method in interface io.avaje.inject.BeanContext
-
Return the list of beans that implement the interface sorting by priority.
- getBeansByPriority(Class<T>) - Static method in class io.avaje.inject.SystemContext
-
Return the list of beans that implement the interface ordering based on
@Priority. - getBeansByPriority(Class<T>, Class<? extends Annotation>) - Method in interface io.avaje.inject.BeanContext
-
Return the beans that implement the interface sorting by the priority annotation used.
- getBeansWithAnnotation(Class<?>) - Method in interface io.avaje.inject.BeanContext
-
Return the list of beans that have an annotation.
- getBeansWithAnnotation(Class<?>) - Static method in class io.avaje.inject.SystemContext
-
Return the list of beans that have an annotation.
- getDependsOn() - Method in interface io.avaje.inject.BeanContext
-
Return the names of modules this bean context depends on.
- getDependsOn() - Method in interface io.avaje.inject.spi.BeanContextFactory
-
Return the names of bean contexts (modules) that this is dependent on (they need to be built before this one).
- getDependsOn() - Method in interface io.avaje.inject.spi.Builder
-
Return the names of modules that this module depends on.
- getList(Class<T>) - Method in interface io.avaje.inject.spi.Builder
-
Get a list of dependencies for the interface type .
- getName() - Method in interface io.avaje.inject.BeanContext
-
Return the module name of the bean context.
- getName() - Method in class io.avaje.inject.BeanEntry
-
Return the bean name.
- getName() - Method in interface io.avaje.inject.spi.BeanContextFactory
-
Return the name of the bean context (module) this will create.
- getName() - Method in interface io.avaje.inject.spi.Builder
-
Return the name of the (module) context this builder is creating.
- getOptional(Class<T>) - Method in interface io.avaje.inject.spi.Builder
-
Get an optional dependency.
- getOptional(Class<T>, String) - Method in interface io.avaje.inject.spi.Builder
-
Get an optional named dependency.
- getPriority() - Method in class io.avaje.inject.BeanEntry
-
Return the priority (Primary, Normal and Secondary).
- getProvides() - Method in interface io.avaje.inject.BeanContext
-
Return the names of module features this bean context provides.
- getProvides() - Method in interface io.avaje.inject.spi.BeanContextFactory
-
Return the name of module features this module provides.
- getProvides() - Method in interface io.avaje.inject.spi.Builder
-
Return the names of module features that this module provides.
- getSet(Class<T>) - Method in interface io.avaje.inject.spi.Builder
-
Get a set of dependencies for the interface type .
- getType() - Method in class io.avaje.inject.spi.EnrichBean
-
Return the dependency injection target type.
- getType() - Method in class io.avaje.inject.spi.SuppliedBean
-
Return the dependency injection target type.
I
- initMethod() - Method in annotation type io.avaje.inject.Bean
-
Specify a method to be treated like a
@PostConstruct - io.avaje.inject - package io.avaje.inject
-
Avaje Inject API - see
SystemContextandBeanContext. - io.avaje.inject.spi - package io.avaje.inject.spi
-
Building bean context objects expected to only be used by generated code.
- isAddBeanFor(Class<?>) - Method in interface io.avaje.inject.spi.Builder
-
Return true if the bean should be created and registered with the context.
- isAddBeanFor(Class<?>, Class<?>) - Method in interface io.avaje.inject.spi.Builder
-
Return true if the bean should be created and registered with the context.
- isPrimary() - Method in class io.avaje.inject.BeanEntry
-
Return true if this entry has Primary priority.
- isSecondary() - Method in class io.avaje.inject.BeanEntry
-
Return true if this entry has Secondary priority.
- isSupplied() - Method in class io.avaje.inject.BeanEntry
-
Return true if this entry has Supplied priority.
M
- method() - Method in annotation type io.avaje.inject.spi.DependencyMeta
-
The bean factory method (for
@Beanannotated methods).
N
- name() - Method in annotation type io.avaje.inject.ContextModule
-
The name of this context/module.
- name() - Method in annotation type io.avaje.inject.spi.DependencyMeta
-
The qualified name of the dependency being provided.
- newBuilder() - Static method in interface io.avaje.inject.BeanContext
-
Build a bean context with options for shutdown hook and supplying test doubles.
- newBuilder(String, String[], String[]) - Static method in interface io.avaje.inject.spi.Builder
-
Create a Builder for the named context (module).
- newRootBuilder(List<SuppliedBean>, List<EnrichBean>) - Static method in interface io.avaje.inject.spi.Builder
-
Create the root level Builder.
- NORMAL - Static variable in class io.avaje.inject.BeanEntry
-
A normal priority bean.
P
- postConstruct() - Method in interface io.avaje.inject.spi.BeanLifecycle
-
Fire post construction.
- PostConstruct - Annotation Type in io.avaje.inject
-
The
PostConstructannotation is used on a method that needs to be executed after dependency injection is done to perform any initialization. - preDestroy() - Method in interface io.avaje.inject.spi.BeanLifecycle
-
Fire on shutdown or close of the bean context.
- PreDestroy - Annotation Type in io.avaje.inject
-
The
PreDestroyannotation 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 - Annotation Type in io.avaje.inject
-
Identify a bean as being the preferred bean to inject when multiple beans implement the intended interface.
- PRIMARY - Static variable in class io.avaje.inject.BeanEntry
-
An
@Primarybean. - Priority - Annotation Type in io.avaje.inject
-
The
Priorityannotation can be applied to classes to indicate in what order they should be returned via @SystemContext.getBeansByPriority(Class). - provides() - Method in annotation type io.avaje.inject.ContextModule
-
Additional module features that is provided by this module.
- provides() - Method in annotation type io.avaje.inject.spi.DependencyMeta
-
The interfaces the bean implements.
R
- register(T, String, Class<?>...) - Method in interface io.avaje.inject.spi.Builder
-
Register the bean instance into the context.
- registerPrimary(T, String, Class<?>...) - Method in interface io.avaje.inject.spi.Builder
-
Register the bean as a Primary bean.
- registerSecondary(T, String, Class<?>...) - Method in interface io.avaje.inject.spi.Builder
-
Register the bean as a secondary bean.
S
- Secondary - Annotation Type in io.avaje.inject
-
Identify a bean as being the least preferred bean to inject when multiple beans implement the intended interface.
- SECONDARY - Static variable in class io.avaje.inject.BeanEntry
-
A
@Secondarybean. - setParent(Builder) - Method in interface io.avaje.inject.spi.Builder
-
Set a parent builder that can provide cross-module dependencies.
- sortByPriority(List<T>) - Method in interface io.avaje.inject.BeanContext
-
Sort the beans by javax.annotation.Priority annotation.
- sortByPriority(List<T>, Class<? extends Annotation>) - Method in interface io.avaje.inject.BeanContext
-
Sort the beans using the given Priority annotation.
- start() - Method in interface io.avaje.inject.BeanContext
-
Start the context firing any
@PostConstructmethods. - SUPPLIED - Static variable in class io.avaje.inject.BeanEntry
-
An explicitly supplied bean.
- SuppliedBean<B> - Class in io.avaje.inject.spi
-
Holds beans supplied to the dependency injection.
- SuppliedBean(Class<B>, B) - Constructor for class io.avaje.inject.spi.SuppliedBean
-
Create with a given target type and bean instance.
- SuppliedBean(Class<B>, B, Consumer<B>) - Constructor for class io.avaje.inject.spi.SuppliedBean
-
Create with a consumer to setup the mock.
- SystemContext - Class in io.avaje.inject
-
Provides a global system wide BeanContext that contains all the bean contexts in the classpath.
T
- toString() - Method in class io.avaje.inject.BeanEntry
- type() - Method in annotation type io.avaje.inject.spi.DependencyMeta
-
The bean type.
V
- value() - Method in annotation type io.avaje.inject.Priority
- value() - Method in annotation type io.avaje.inject.spi.Generated
-
The name of the generator used to generate this source.
W
- withBean(Class<D>, D) - Method in interface io.avaje.inject.BeanContextBuilder
-
Add a supplied bean instance with the given injection type.
- withBeans(Object...) - Method in interface io.avaje.inject.BeanContextBuilder
-
Supply a bean to the context that will be used instead of any similar bean in the context.
- withIgnoreMissingModuleDependencies() - Method in interface io.avaje.inject.BeanContextBuilder
-
Set this when building a BeanContext (typically for testing) and supplied beans replace module dependencies.
- withMock(Class<?>) - Method in interface io.avaje.inject.BeanContextBuilder
-
Use a mockito mock when injecting this bean type.
- withMock(Class<D>, Consumer<D>) - Method in interface io.avaje.inject.BeanContextBuilder
-
Use a mockito mock when injecting this bean type additionally running setup on the mock instance.
- withModules(String...) - Method in interface io.avaje.inject.BeanContextBuilder
-
Specify the modules to include in dependency injection.
- withNoShutdownHook() - Method in interface io.avaje.inject.BeanContextBuilder
-
Create the bean context without registering a shutdown hook.
- withSpy(Class<?>) - Method in interface io.avaje.inject.BeanContextBuilder
-
Use a mockito spy when injecting this bean type.
- withSpy(Class<D>, Consumer<D>) - Method in interface io.avaje.inject.BeanContextBuilder
-
Use a mockito spy when injecting this bean type additionally running setup on the spy instance.
All Classes All Packages