Index
All Classes|All Packages
A
- addInjector(Consumer<Builder>) - Method in interface io.avaje.inject.spi.Builder
-
Add field and method injection.
- addPostConstruct(Runnable) - Method in interface io.avaje.inject.spi.Builder
-
Add lifecycle PostConstruct method.
- addPreDestroy(AutoCloseable) - Method in interface io.avaje.inject.spi.Builder
-
Add lifecycle PreDestroy method.
- all() - Method in interface io.avaje.inject.BeanScope
-
Return all the bean entries from the scope.
B
- bean() - Method in interface io.avaje.inject.BeanEntry
-
Return the bean instance.
- bean() - Method in class io.avaje.inject.spi.SuppliedBean
-
Return the bean instance to use for injection.
- Bean - Annotation Type in io.avaje.inject
-
Marks methods on a
@Factorybean that create dependencies. - BeanEntry - Interface in io.avaje.inject
-
A bean entry with priority and optional name.
- 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.
- BeanScope - Interface in io.avaje.inject
-
Holds beans created by dependency injection.
- BeanScopeBuilder - Interface in io.avaje.inject
-
Build a bean scope with options for shutdown hook and supplying external dependencies.
- BeanScopeBuilder.ForTesting - Interface in io.avaje.inject
-
Extends the building with testing specific support for mocks and spies.
- build() - Method in interface io.avaje.inject.BeanScopeBuilder
-
Build and return the bean scope.
- build(boolean) - Method in interface io.avaje.inject.spi.Builder
-
Build and return the bean scope.
- build(Builder) - Method in interface io.avaje.inject.spi.Module
-
Build all the beans.
- Builder - Interface in io.avaje.inject.spi
-
Mutable builder object used when building a bean scope.
C
- close() - Method in interface io.avaje.inject.BeanScope
-
Close the scope firing any
@PreDestroylifecycle methods. - 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.
- customScopeType() - Method in annotation type io.avaje.inject.InjectModule
-
Internal use only - identifies the custom scope annotation associated to this module.
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.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.
- EnrichBean<B> - Class in io.avaje.inject.spi
-
Holds Spy setup consumers for dependency injection using Mockito Spy.
- EnrichBean(Class<B>, String, Consumer<B>) - Constructor for class io.avaje.inject.spi.EnrichBean
- equals(Object) - Method in class io.avaje.inject.spi.GenericType
F
- Factory - Annotation Type in io.avaje.inject
-
A singleton bean that has methods marked with the
@Beanannotation. - forTesting() - Method in interface io.avaje.inject.BeanScopeBuilder
-
Extend the builder to support testing using mockito with
withMock()andwithSpy()methods.
G
- Generated - Annotation Type in io.avaje.inject.spi
-
Marks source code that has been generated.
- GenericType<T> - Class in io.avaje.inject.spi
-
Represents a full type including generics declaration, to avoid information loss due to type erasure.
- get(Class<T>) - Method in interface io.avaje.inject.BeanScope
-
Return a single bean given the type.
- get(Class<T>) - Method in interface io.avaje.inject.spi.Builder
-
Get a dependency.
- get(Class<T>, String) - Method in interface io.avaje.inject.BeanScope
-
Return a single bean given the type and name.
- get(Class<T>, String) - Method in interface io.avaje.inject.spi.Builder
-
Get a named dependency.
- get(Type, String) - Method in interface io.avaje.inject.BeanScope
-
Return a single bean given the generic type and name.
- getNullable(Class<T>) - Method in interface io.avaje.inject.spi.Builder
-
Get an optional dependency potentially returning null.
- getNullable(Class<T>, String) - Method in interface io.avaje.inject.spi.Builder
-
Get an optional named dependency potentially returning null.
- 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.
- getProvider(Class<T>) - Method in interface io.avaje.inject.spi.Builder
-
Return Provider of T given the type.
- getProvider(Class<T>, String) - Method in interface io.avaje.inject.spi.Builder
-
Return Provider of T given the type and name.
- getProviderFor(Class<?>, Type) - Method in interface io.avaje.inject.spi.Builder
-
Return Provider for a generic interface type.
- getTypeName() - Method in class io.avaje.inject.spi.GenericType
H
- hashCode() - Method in class io.avaje.inject.spi.GenericType
- hasKey(Class<?>) - Method in interface io.avaje.inject.BeanEntry
-
Return true if the entry has a key for this type.
I
- initMethod() - Method in annotation type io.avaje.inject.Bean
-
Specify a method to be treated like a
@PostConstruct - InjectModule - Annotation Type in io.avaje.inject
-
Used to explicitly specify if it depends on externally provided beans or provides.
- interfaces() - Method in class io.avaje.inject.spi.SuppliedBean
-
Return the interfaces to additionally register along with the type.
- io.avaje.inject - package io.avaje.inject
-
Avaje Inject API - see
BeanScope. - io.avaje.inject.spi - package io.avaje.inject.spi
-
Building bean scope objects expected to only be used by generated code.
- isAddBeanFor(Type...) - Method in interface io.avaje.inject.spi.Builder
-
Return true if the bean should be created and registered with the context.
- isAddBeanFor(String, Type...) - Method in interface io.avaje.inject.spi.Builder
-
Return true if the bean should be created and registered with the context.
K
- key() - Method in class io.avaje.inject.spi.EnrichBean
-
Return the key for this enriched bean.
- keys() - Method in interface io.avaje.inject.BeanEntry
-
Return the type keys for this bean.
L
- list(Class<T>) - Method in interface io.avaje.inject.BeanScope
-
Return the list of beans that implement the interface.
- list(Class<T>) - Method in interface io.avaje.inject.spi.Builder
-
Get a list of dependencies for the interface type .
- listByAnnotation(Class<?>) - Method in interface io.avaje.inject.BeanScope
-
Return the list of beans that have an annotation.
- listByPriority(Class<T>) - Method in interface io.avaje.inject.BeanScope
-
Return the list of beans that implement the interface sorting by priority.
- listByPriority(Class<T>, Class<? extends Annotation>) - Method in interface io.avaje.inject.BeanScope
-
Return the beans that implement the interface sorting by the priority annotation used.
M
- method() - Method in annotation type io.avaje.inject.spi.DependencyMeta
-
The bean factory method (for
@Beanannotated methods). - Module - Interface in io.avaje.inject.spi
-
A Module that can be included in BeanScope.
- Module.Custom - Interface in io.avaje.inject.spi
-
Marker for custom scoped modules.
N
- name() - Method in annotation type io.avaje.inject.InjectModule
-
Explicitly specify the name of the module.
- name() - Method in annotation type io.avaje.inject.spi.DependencyMeta
-
The qualified name of the dependency being provided.
- name() - Method in class io.avaje.inject.spi.SuppliedBean
-
Return the qualifier name of the supplied bean.
- newBuilder() - Static method in interface io.avaje.inject.BeanScope
-
Build a bean scope with options for shutdown hook and supplying external dependencies.
- newBuilder(List<SuppliedBean>, List<EnrichBean>, BeanScope) - Static method in interface io.avaje.inject.spi.Builder
-
Create the root level Builder.
- NORMAL - Static variable in interface io.avaje.inject.BeanEntry
-
Priority of normal bean.
O
- of(Class<?>, Object) - Static method in class io.avaje.inject.spi.SuppliedBean
-
Create with a class type and bean instance.
- of(String, Class<B>, B) - Static method in class io.avaje.inject.spi.SuppliedBean
-
Create for a class type with name.
- of(String, Class<B>, B, Consumer<B>) - Static method in class io.avaje.inject.spi.SuppliedBean
-
Create for a class type with a consumer that runs once when the bean is obtained.
- ofType(String, Type, B) - Static method in class io.avaje.inject.spi.SuppliedBean
-
Create a supplied bean for a generic type.
P
- 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 - 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 interface io.avaje.inject.BeanEntry
-
Priority of
@Primarybean. - priority() - Method in interface io.avaje.inject.BeanEntry
-
Return the priority indicating if the bean is Supplied Primary, Normal or Secondary.
- Priority - Annotation Type in io.avaje.inject
-
The
Priorityannotation can be applied to classes to indicate in what order they should be returned via @BeanScope.listByPriority(Class). - provides() - Method in annotation type io.avaje.inject.InjectModule
-
Explicitly define features that are provided by this module and required by other modules.
- provides() - Method in annotation type io.avaje.inject.spi.DependencyMeta
-
The interfaces the bean implements.
- provides() - Method in interface io.avaje.inject.spi.Module
-
Return the set of types this module explicitly provides to other modules.
Q
- qualifierName() - Method in interface io.avaje.inject.BeanEntry
-
Return the bean name.
R
- register(T) - Method in interface io.avaje.inject.spi.Builder
-
Register the bean instance into the context.
- registerPrimary(T) - Method in interface io.avaje.inject.spi.Builder
-
Register the bean as a Primary bean.
- registerSecondary(T) - Method in interface io.avaje.inject.spi.Builder
-
Register the bean as a secondary bean.
- requires() - Method in annotation type io.avaje.inject.InjectModule
-
The dependencies that are provided externally or by other modules and that are required when wiring this module.
- requires() - Method in interface io.avaje.inject.spi.Module
-
Return the types this module needs to be provided externally or via other modules.
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 interface io.avaje.inject.BeanEntry
-
Priority of
@Secondarybean. - set(Class<T>) - Method in interface io.avaje.inject.spi.Builder
-
Get a set of dependencies for the interface type .
- SUPPLIED - Static variable in interface io.avaje.inject.BeanEntry
-
Priority of externally supplied bean.
- SuppliedBean<B> - Class in io.avaje.inject.spi
-
Holds beans supplied to the dependency injection.
T
- toString() - Method in class io.avaje.inject.spi.GenericType
- type() - Method in interface io.avaje.inject.BeanEntry
-
The bean instance type.
- type() - Method in annotation type io.avaje.inject.spi.DependencyMeta
-
The bean type.
- type() - Method in class io.avaje.inject.spi.GenericType
-
Return the type represented by this generic type instance.
- type() - Method in class io.avaje.inject.spi.SuppliedBean
-
Return the dependency injection target 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.BeanScopeBuilder
-
Add a supplied bean instance with the given injection type (typically an interface type).
- withBean(Type, D) - Method in interface io.avaje.inject.BeanScopeBuilder
-
Add a supplied bean instance with a generic type.
- withBean(String, Class<D>, D) - Method in interface io.avaje.inject.BeanScopeBuilder
-
Add a supplied bean instance with the given name and injection type.
- withBean(String, Type, D) - Method in interface io.avaje.inject.BeanScopeBuilder
-
Add a supplied bean instance with the given name and generic type.
- withBeans(Object...) - Method in interface io.avaje.inject.BeanScopeBuilder
-
Supply a bean to the scope that will be used instead of any similar bean in the scope.
- withMock(Class<?>) - Method in interface io.avaje.inject.BeanScopeBuilder.ForTesting
-
Use a mockito mock when injecting this bean type.
- withMock(Class<?>, String) - Method in interface io.avaje.inject.BeanScopeBuilder.ForTesting
-
Register as a Mockito mock with a qualifier name.
- withMock(Class<D>, Consumer<D>) - Method in interface io.avaje.inject.BeanScopeBuilder.ForTesting
-
Use a mockito mock when injecting this bean type additionally running setup on the mock instance.
- withModules(Module...) - Method in interface io.avaje.inject.BeanScopeBuilder
-
Specify the modules to include in dependency injection.
- withParent(BeanScope) - Method in interface io.avaje.inject.BeanScopeBuilder
-
Use the given BeanScope as the parent.
- withShutdownHook(boolean) - Method in interface io.avaje.inject.BeanScopeBuilder
-
Create the bean scope registering a shutdown hook (defaults to false, no shutdown hook).
- withSpy(Class<?>) - Method in interface io.avaje.inject.BeanScopeBuilder.ForTesting
-
Use a mockito spy when injecting this bean type.
- withSpy(Class<?>, String) - Method in interface io.avaje.inject.BeanScopeBuilder.ForTesting
-
Register a Mockito spy with a qualifier name.
- withSpy(Class<D>, Consumer<D>) - Method in interface io.avaje.inject.BeanScopeBuilder.ForTesting
-
Use a mockito spy when injecting this bean type additionally running setup on the spy instance.
All Classes|All Packages