Index

A B C D E F G H I K L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

addAutoClosable(Object) - Method in interface io.avaje.inject.spi.Builder
Check if the instance is AutoCloseable and if so register it with PreDestroy.
addInjector(Consumer<Builder>) - Method in interface io.avaje.inject.spi.Builder
Add field and method injection.
addPostConstruct(Runnable) - Method in interface io.avaje.inject.BeanScopeBuilder
Adds hooks that will execute after this scope is built.
addPostConstruct(Runnable) - Method in interface io.avaje.inject.spi.Builder
Add lifecycle PostConstruct method.
addPostConstruct(Consumer<BeanScope>) - Method in interface io.avaje.inject.BeanScopeBuilder
Adds hook that will execute after this scope is built.
addPostConstruct(Consumer<BeanScope>) - Method in interface io.avaje.inject.spi.Builder
Add lifecycle PostConstruct method.
addPreDestroy(AutoCloseable) - Method in interface io.avaje.inject.BeanScopeBuilder
Add hook that will execute before this scope is destroyed.
addPreDestroy(AutoCloseable) - Method in interface io.avaje.inject.spi.Builder
Add lifecycle PreDestroy method.
addPreDestroy(AutoCloseable, int) - Method in interface io.avaje.inject.BeanScopeBuilder
Add hook with a priority that will execute before this scope is destroyed.
addPreDestroy(AutoCloseable, int) - Method in interface io.avaje.inject.spi.Builder
Add lifecycle PreDestroy method with a given priority.
all() - Method in interface io.avaje.inject.BeanScope
Return all the bean entries from the scope.
all() - Element in annotation type io.avaje.inject.Profile
Expresses that all of the given profiles must be set for the bean to load.
apply(BeanScopeBuilder) - Method in interface io.avaje.inject.spi.Plugin
Apply the plugin to the scope builder.
arguments() - Method in interface io.avaje.inject.aop.Invocation
Return the arguments used for this invocation.
arguments() - Method in class io.avaje.inject.aop.Invocation.Base
 
arguments(Throwable) - Method in interface io.avaje.inject.aop.Invocation
Return the arguments additionally appending the throwable.
arguments(Throwable) - Method in class io.avaje.inject.aop.Invocation.Base
 
Aspect - Annotation Type in io.avaje.inject.aop
Meta annotation used to define an Aspect.
Aspect.Import - Annotation Type in io.avaje.inject.aop
Marks an External Annotation as being used for aspects
AspectProvider<T> - Interface in io.avaje.inject.aop
Provides the MethodInterceptor for the given aspect.
asPrimary() - Method in interface io.avaje.inject.spi.Builder
Register the next bean as having Primary priority.
asPrototype() - Method in interface io.avaje.inject.spi.Builder
Register the next bean as having Prototype scope.
asSecondary() - Method in interface io.avaje.inject.spi.Builder
Register the next bean as having Secondary priority.
autoCloseable() - Element in annotation type io.avaje.inject.Bean
Specify that the concrete instance of the bean is an AutoCloseable.
autoProvides() - Element in annotation type io.avaje.inject.spi.DependencyMeta
Type deemed to be reasonable to provide to external module.
autoProvides() - Method in interface io.avaje.inject.spi.Module
Return the classes that this module provides that we allow other modules to auto depend on.
autoProvidesAspects() - Method in interface io.avaje.inject.spi.Module
Return the aspects that this module provides.
autoRequires() - Method in interface io.avaje.inject.spi.Module
These are the classes that this module requires for wiring that are provided by other external modules (that are in the classpath at compile time).
autoRequiresAspects() - Method in interface io.avaje.inject.spi.Module
These are the apects that this module requires whose implementations are provided by other external modules (that are in the classpath at compile time).

B

Base() - Constructor for class io.avaje.inject.aop.Invocation.Base
 
bean() - Method in interface io.avaje.inject.BeanEntry
Return the bean instance.
bean(Class<D>, D) - Method in interface io.avaje.inject.BeanScopeBuilder
Add a supplied bean instance with the given injection type (typically an interface type).
bean(Type, D) - Method in interface io.avaje.inject.BeanScopeBuilder
Add a supplied bean instance with a generic type.
bean(String, Class<D>, D) - Method in interface io.avaje.inject.BeanScopeBuilder
Add a supplied bean instance with the given name and injection type.
bean(String, Type, D) - Method in interface io.avaje.inject.BeanScopeBuilder
Add a supplied bean instance with the given name and generic type.
Bean - Annotation Type in io.avaje.inject
Marks methods on a @Factory bean 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.
beans(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.
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, long) - 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() - Static method in interface io.avaje.inject.BeanScope
Build a bean scope with options for shutdown hook and supplying external dependencies.
Builder - Interface in io.avaje.inject.spi
Mutable builder object used when building a bean scope.

C

1. Create the scope annotation - Search tag in Overview
Section
2. Create and use BeanScope - Search tag in Overview
Section
Call(Invocation.CheckedSupplier<T>) - Constructor for class io.avaje.inject.aop.Invocation.Call
Create with a given supplier.
classes() - Method in interface io.avaje.inject.spi.Module
Return public classes of the beans that would be registered by this module.
classLoader(ClassLoader) - Method in interface io.avaje.inject.BeanScopeBuilder
Set the ClassLoader to use when loading modules.
close() - Method in interface io.avaje.inject.BeanScope
Close the scope firing any @PreDestroy lifecycle methods.
closeable() - Method in class io.avaje.inject.spi.ClosePair
 
ClosePair - Class in io.avaje.inject.spi
 
ClosePair(int, AutoCloseable) - Constructor for class io.avaje.inject.spi.ClosePair
 
compareTo(ClosePair) - Method in class io.avaje.inject.spi.ClosePair
 
Component - Annotation Type in io.avaje.inject
Identify a bean as component with singleton scope that avaje-inject will use.
Component.Import - Annotation Type in io.avaje.inject
Specify types to generate DI classes for.
contains(Type) - Method in interface io.avaje.inject.BeanScope
Return true if the bean scope contains the given type.
contains(Type) - Method in interface io.avaje.inject.spi.Builder
Return true if the builder contains the given type.
contains(String) - Method in interface io.avaje.inject.BeanScope
Return true if the bean scope contains the given type.
contains(String) - Method in interface io.avaje.inject.spi.Builder
Return true if the builder contains the given type.
contains(String) - Method in interface io.avaje.inject.spi.PropertyRequiresPlugin
Return true if the property is defined.
containsAllProfiles(List<String>) - Method in interface io.avaje.inject.spi.Builder
Return true if the builder contains all of the given profile
containsProfiles(List<String>) - Method in interface io.avaje.inject.spi.Builder
Return true if the builder contains the given profile
containsQualifier(String) - Method in interface io.avaje.inject.spi.Builder
Return true if the builder contains a bean with the given name.
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.
Create a BeanScope - Search tag in interface io.avaje.inject.BeanScope
Section
Custom scope depending on another scope - Search tag in annotation type io.avaje.inject.InjectModule
Section
Custom scopes - Search tag in Overview
Section
customScopeType() - Element in annotation type io.avaje.inject.InjectModule
Internal use only - identifies the custom scope annotation associated to this module.

D

Default scope - Search tag in Overview
Section
DependencyMeta - Annotation Type in io.avaje.inject.spi
Hold bean dependency metadata intended for internal use by code generation (Java annotation processing).
dependsOn() - Element in annotation type io.avaje.inject.spi.DependencyMeta
The list of dependencies this bean requires.
destroyMethod() - Element in annotation type io.avaje.inject.Bean
Specify a method to be treated like a @PreDestroy
destroyPriority() - Element in annotation type io.avaje.inject.Bean
Specify the priority of the destroy method to control its execution order relative to other destroy methods.

E

EMPTY_CLASSES - Static variable in interface io.avaje.inject.spi.Module
Empty array of classes.
EMPTY_CLASSES - Static variable in interface io.avaje.inject.spi.Plugin
Empty array of classes.
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
 
equalTo() - Element in annotation type io.avaje.inject.RequiresProperty
Used in combination with value() to express the required value of the property.
equalTo(String, String) - Method in interface io.avaje.inject.spi.PropertyRequiresPlugin
Return true if the property is equal to the given value.
Example - Search tag in annotation type io.avaje.inject.Component
Section
External dependencies - Search tag in annotation type io.avaje.inject.InjectModule
Section
External dependencies - Search tag in interface io.avaje.inject.BeanScope
Section

F

Factory - Annotation Type in io.avaje.inject
A singleton bean that has methods marked with the @Bean annotation.
Fallback - Interface in io.avaje.inject.aop
A fallback or recovery method used with Aspects.
finalResult() - Method in class io.avaje.inject.aop.Invocation.Base
Return the final invocation result.
finalResult() - Method in class io.avaje.inject.aop.Invocation.Call
 
find(String, Method) - Static method in interface io.avaje.inject.aop.Fallback
Find and return the fallback given the name and original method.
forTesting() - Method in interface io.avaje.inject.BeanScopeBuilder
Extend the builder to support testing using mockito with withMock() and withSpy() methods.

G

3. Generated Module - Search tag in Overview
Section
Generated - Annotation Type in io.avaje.inject.spi
Marks source code that has been generated.
Generated code - Search tag in Overview
Section
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) - Method in interface io.avaje.inject.spi.Builder
Get a dependency for the generic type.
get(Type, String) - Method in interface io.avaje.inject.BeanScope
Return a single bean given the generic type and name.
get(Type, String) - Method in interface io.avaje.inject.spi.Builder
Get a named dependency for the generic type.
get(String) - Method in interface io.avaje.inject.spi.PropertyRequiresPlugin
Return a configuration value that might not exist.
getGen(Class<T>, String) - Method in interface io.avaje.inject.BeanScope
 
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.
getNullable(Type) - Method in interface io.avaje.inject.spi.Builder
Get an optional dependency potentially returning null for the generic type.
getNullable(Type, String) - Method in interface io.avaje.inject.spi.Builder
Get an optional named dependency potentially returning null for the generic type.
getOptional(Class<T>) - Method in interface io.avaje.inject.BeanScope
Optionally return a single bean given the type and empty if it is not found.
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.
getOptional(Type) - Method in interface io.avaje.inject.spi.Builder
Get an optional dependency for the generic type.
getOptional(Type, String) - Method in interface io.avaje.inject.BeanScope
Optionally return a single bean given the type and name and empty if it is not found.
getOptional(Type, String) - Method in interface io.avaje.inject.spi.Builder
Get an optional named dependency for the generic type.
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.
getProvider(Type) - Method in interface io.avaje.inject.spi.Builder
Return Provider of T given the generic type.
getProvider(Type, String) - Method in interface io.avaje.inject.spi.Builder
Return Provider of T given the generic 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

ignoreSingleton() - Element in annotation type io.avaje.inject.InjectModule
Set to true to ignore anything annotated with @Singleton.
Ignoring @Singleton - Search tag in annotation type io.avaje.inject.Component
Section
importedComponent() - Element in annotation type io.avaje.inject.spi.DependencyMeta
True when the component has been imported.
initMethod() - Element 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.
instance() - Method in class io.avaje.inject.aop.Invocation.Base
 
instance() - Method in interface io.avaje.inject.aop.Invocation
Return the 'this' instance of the invocation.
interceptor(Method, T) - Method in interface io.avaje.inject.aop.AspectProvider
Return the method interceptor to use for the given method and aspect annotation.
interfaces() - Method in class io.avaje.inject.spi.SuppliedBean
Return the interfaces to additionally register along with the type.
Invocation - Interface in io.avaje.inject.aop
Method invocation using in MethodInterceptor.invoke(Invocation) for Aspects.
Invocation.Base<T> - Class in io.avaje.inject.aop
Invocation base type for both callable and runnable methods.
Invocation.Call<T> - Class in io.avaje.inject.aop
Callable based Invocation with checked exceptions.
Invocation.CheckedRunnable - Interface in io.avaje.inject.aop
Runnable with checked exceptions.
Invocation.CheckedSupplier<T> - Interface in io.avaje.inject.aop
Callable with checked exceptions.
Invocation.Run - Class in io.avaje.inject.aop
Runnable based Invocation.
InvocationException - Exception Class in io.avaje.inject.aop
Exception occurring during method interception.
InvocationException(String) - Constructor for exception class io.avaje.inject.aop.InvocationException
Create with a given cause.
InvocationException(String, Throwable) - Constructor for exception class io.avaje.inject.aop.InvocationException
Create with a given message and cause.
InvocationException(Throwable) - Constructor for exception class io.avaje.inject.aop.InvocationException
Create with a given cause.
invoke() - Method in class io.avaje.inject.aop.Invocation.Call
 
invoke() - Method in interface io.avaje.inject.aop.Invocation.CheckedRunnable
Invoke the method.
invoke() - Method in interface io.avaje.inject.aop.Invocation.CheckedSupplier
Invoke the method returning the result.
invoke() - Method in interface io.avaje.inject.aop.Invocation
Invoke the underlying method returning the result.
invoke() - Method in class io.avaje.inject.aop.Invocation.Run
 
invoke(Invocation) - Method in interface io.avaje.inject.aop.MethodInterceptor
Implementation can perform before and after invocation logic.
invoke(Invocation, Throwable) - Method in interface io.avaje.inject.aop.Fallback
Invoke the fallback method given the invocation and exception.
invokeUnchecked() - Method in interface io.avaje.inject.aop.Invocation
Invoke the underlying method returning the result.
io.avaje.inject - module io.avaje.inject
 
io.avaje.inject - package io.avaje.inject
Avaje Inject API - see BeanScope.
io.avaje.inject.aop - package io.avaje.inject.aop
Support for AOP Aspects.
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 for a given type.
list(Class<T>) - Method in interface io.avaje.inject.spi.Builder
Get a list of dependencies for the type.
list(Type) - Method in interface io.avaje.inject.BeanScope
Return the list of beans that implement the given type.
list(Type) - Method in interface io.avaje.inject.spi.Builder
Get a list of dependencies for the generic type.
listByAnnotation(Class<? extends Annotation>) - 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

map(Class<T>) - Method in interface io.avaje.inject.spi.Builder
Return a map of dependencies for the type keyed by qualifier name.
map(Type) - Method in interface io.avaje.inject.BeanScope
Return the beans for this type mapped by their qualifier name.
map(Type) - Method in interface io.avaje.inject.spi.Builder
Return a map of dependencies for the generic type keyed by qualifier name.
method() - Method in class io.avaje.inject.aop.Invocation.Base
 
method() - Method in interface io.avaje.inject.aop.Invocation
Return the method being called for this invocation.
method() - Element in annotation type io.avaje.inject.spi.DependencyMeta
The bean factory method (for @Bean annotated methods).
MethodInterceptor - Interface in io.avaje.inject.aop
Provides method interception such that logic can be provided both before and after method invocation.
missing() - Element in annotation type io.avaje.inject.RequiresBean
Expresses that beans of the given types should not be available in the BeanScope.
missing() - Element in annotation type io.avaje.inject.RequiresProperty
Expresses that the bean or configuration will only be registered if the given properties are missing.
missing(String) - Method in interface io.avaje.inject.spi.PropertyRequiresPlugin
Return true if the property is not defined.
mock(Class<?>) - Method in interface io.avaje.inject.BeanScopeBuilder.ForTesting
Use a mockito mock when injecting this bean type.
mock(Class<?>, String) - Method in interface io.avaje.inject.BeanScopeBuilder.ForTesting
Register as a Mockito mock with a qualifier name.
mock(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.
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.
modules(Module...) - Method in interface io.avaje.inject.BeanScopeBuilder
Specify the modules to include in dependency injection.

N

name() - Element in annotation type io.avaje.inject.InjectModule
Explicitly specify the name of the module.
name() - Element 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(Set<String>, PropertyRequiresPlugin, List<SuppliedBean>, List<EnrichBean>, BeanScope, boolean) - Static method in interface io.avaje.inject.spi.Builder
Create the root level Builder.
none() - Element in annotation type io.avaje.inject.Profile
Expresses that none of the given profiles must be set for the bean to load.
NORMAL - Static variable in interface io.avaje.inject.BeanEntry
Priority of normal bean.
notEqualTo() - Element in annotation type io.avaje.inject.RequiresProperty
Constraint a property to not equal the given value.
notEqualTo(String, String) - Method in interface io.avaje.inject.spi.PropertyRequiresPlugin
Return true if the property is not defined or not equal to the given value.

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>, 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, Object) - Static method in class io.avaje.inject.spi.SuppliedBean
Create a supplied bean for a generic type.
ordering() - Element in annotation type io.avaje.inject.aop.Aspect.Import
Specify the priority ordering when multiple aspects are on a method.
ordering() - Element in annotation type io.avaje.inject.aop.Aspect
Specify the priority ordering when multiple aspects are on a method.
Overview - Search tag in Overview
Section

P

parent(BeanScope) - Method in interface io.avaje.inject.BeanScopeBuilder
Use the given BeanScope as the parent.
parent(BeanScope, boolean) - Method in interface io.avaje.inject.BeanScopeBuilder
Use the given BeanScope as the parent additionally specifying if beans added will effectively override beans that exist in the parent scope.
Plugin - Interface in io.avaje.inject.spi
A Plugin that can be applied when creating a bean scope.
PostConstruct - Annotation Type in io.avaje.inject
The PostConstruct annotation 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 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 - 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 @Primary bean.
priority() - Method in interface io.avaje.inject.BeanEntry
Return the priority indicating if the bean is Supplied Primary, Normal or Secondary.
priority() - Element in annotation type io.avaje.inject.PreDestroy
Specify the priority of the destroy method to control its execution order relative to other destroy methods.
priority() - Method in class io.avaje.inject.spi.ClosePair
 
priority() - Method in class io.avaje.inject.spi.SuppliedBean
Return the associated priority.
Priority - Annotation Type in io.avaje.inject
The Priority annotation can be applied to classes to indicate in what order they should be returned via @BeanScope.listByPriority(Class).
Profile - Annotation Type in io.avaje.inject
Expresses a requirement for a bean to be wired/registered into the BeanScope.
profiles(String...) - Method in interface io.avaje.inject.BeanScopeBuilder
Set the explicit profiles to use when building the scope.
property() - Method in interface io.avaje.inject.spi.Builder
Return the plugin for required properties.
propertyPlugin() - Method in interface io.avaje.inject.BeanScopeBuilder
Return the PropertyPlugin used for this scope.
propertyPlugin(PropertyRequiresPlugin) - Method in interface io.avaje.inject.BeanScopeBuilder
Set the PropertyPlugin used for this scope.
PropertyRequiresPlugin - Interface in io.avaje.inject.spi
Plugin interface which contains the application properties used for wiring.
Prototype - Annotation Type in io.avaje.inject
Specify a bean that has prototype scope.
provideDefault(Type, Supplier<D>) - Method in interface io.avaje.inject.BeanScopeBuilder
Add a supplied bean provider that acts as a default fallback for a dependency.
provideDefault(String, Type, Supplier<D>) - Method in interface io.avaje.inject.BeanScopeBuilder
Add a supplied bean provider that acts as a default fallback for a dependency.
provides() - Element in annotation type io.avaje.inject.InjectModule
Explicitly define features that are provided by this module and required by other modules.
provides() - Element 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.
provides() - Method in interface io.avaje.inject.spi.Plugin
Return the classes that the plugin provides.
providesAspect() - Element in annotation type io.avaje.inject.spi.DependencyMeta
The aspect this component provides.
providesAspects() - Method in interface io.avaje.inject.spi.Plugin
Return the aspect classes that the plugin provides.
Proxy - Annotation Type in io.avaje.inject.spi
Marks the type as being a Proxy.

Q

QualifiedMap - Annotation Type in io.avaje.inject
Marks an Map<String, T> field/parameter to receive a map of beans keyed by qualifier name.
qualifierName() - Method in interface io.avaje.inject.BeanEntry
Return the bean name.
qualifiers() - Element in annotation type io.avaje.inject.RequiresBean
Expresses that a
invalid @link
{@link @Named
} or
invalid @link
{@link @Qualifier
} annotation marker of the given name should be available in the BeanScope.

R

register(T) - Method in interface io.avaje.inject.spi.Builder
Register the bean instance into the context.
registerProvider(Provider<T>) - Method in interface io.avaje.inject.spi.Builder
Register the provider into the context.
requires() - Element 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.
RequiresBean - Annotation Type in io.avaje.inject
Expresses a requirement for a bean to be wired/registered into the BeanScope.
RequiresBean.Container - Annotation Type in io.avaje.inject
 
requiresPackages() - Element in annotation type io.avaje.inject.InjectModule
Dependencies in these packages are expected to be provided by other modules.
requiresPackages() - Method in interface io.avaje.inject.spi.Module
Return the packages this module needs to be provided via other modules.
RequiresProperty - Annotation Type in io.avaje.inject
Expresses a requirement for a bean to be wired/registered into the BeanScope.
RequiresProperty.Container - Annotation Type in io.avaje.inject
 
result(Object) - Method in class io.avaje.inject.aop.Invocation.Base
 
result(Object) - Method in interface io.avaje.inject.aop.Invocation
Set the result that will be returned to the caller.
Run(Invocation.CheckedRunnable) - Constructor for class io.avaje.inject.aop.Invocation.Run
Create with a given closure to run.

S

1. @Singleton / @Factory - Search tag in Overview
Section
secondary(String, Type, Object) - Static method in class io.avaje.inject.spi.SuppliedBean
Create a supplied bean with SECONDARY priority as a default fallback dependency that is only used when no other matching one is provided.
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 @Secondary bean.
set(Class<T>) - Method in interface io.avaje.inject.spi.Builder
Get a set of dependencies for the type.
set(Type) - Method in interface io.avaje.inject.spi.Builder
Get a set of dependencies for the generic type.
shutdownHook(boolean) - Method in interface io.avaje.inject.BeanScopeBuilder
Create the bean scope registering a shutdown hook (defaults to false, no shutdown hook).
source() - Method in class io.avaje.inject.spi.SuppliedBean
Return the bean instance or provider to use for injection.
spy(Class<?>) - Method in interface io.avaje.inject.BeanScopeBuilder.ForTesting
Use a mockito spy when injecting this bean type.
spy(Class<?>, String) - Method in interface io.avaje.inject.BeanScopeBuilder.ForTesting
Register a Mockito spy with a qualifier name.
spy(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.
SUPPLIED - Static variable in interface io.avaje.inject.BeanEntry
Priority of externally supplied bean.
SuppliedBean - 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() - Element 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.

U

2. Use the annotation - Search tag in Overview
Section
4. Use the custom scope - Search tag in Overview
Section

V

value() - Element in annotation type io.avaje.inject.aop.Aspect.Import
 
value() - Element in annotation type io.avaje.inject.Component.Import
Specify types to generate DI classes for.
value() - Element in annotation type io.avaje.inject.Priority
 
value() - Element in annotation type io.avaje.inject.Profile
Expresses that any of the given profiles must be set for the bean to load.
value() - Element in annotation type io.avaje.inject.RequiresBean.Container
The required dependencies.
value() - Element in annotation type io.avaje.inject.RequiresBean
Expresses that beans of the given types should be available in the BeanScope.
value() - Element in annotation type io.avaje.inject.RequiresProperty.Container
The required dependencies.
value() - Element in annotation type io.avaje.inject.RequiresProperty
Expresses that the given property should be set for the bean to load.
value() - Element in annotation type io.avaje.inject.spi.Generated
The name of the generator used to generate this source.
value() - Element in annotation type io.avaje.inject.spi.Proxy
The class being proxied

W

with(Object, Method, Object...) - Method in class io.avaje.inject.aop.Invocation.Base
Set the instance, method and arguments for the invocation.
withBean(Class<T>, T) - Method in interface io.avaje.inject.spi.Builder
Register the externally provided bean.
wrap(MethodInterceptor) - Method in class io.avaje.inject.aop.Invocation.Base
Wrap this invocation using a methodInterceptor returning the wrapped call.
wrap(MethodInterceptor) - Method in class io.avaje.inject.aop.Invocation.Call
 
wrap(MethodInterceptor) - Method in class io.avaje.inject.aop.Invocation.Run
 
A B C D E F G H I K L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form