Index

A B C D E F G I K L M N P R S T V W 
All Classes|All Packages

A

addClosable(Closeable) - Method in interface io.avaje.inject.RequestScope
Register a closable with the request scope.
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.
ApplicationScope - Class in io.avaje.inject
Provides a global system wide BeanScope that contains all the beans.

B

Bean - Annotation Type in io.avaje.inject
Marks methods on a @Factory bean that create dependencies.
BeanEntry<T> - Class in io.avaje.inject
A bean entry 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.
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 test doubles.
BeanScopeFactory - Interface in io.avaje.inject.spi
This is the service loader interface defining the bean scope.
build() - Method in interface io.avaje.inject.BeanScopeBuilder
Build and return the bean scope.
build() - Method in interface io.avaje.inject.RequestScopeBuilder
Build and return the request 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.BeanScopeFactory
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 @PreDestroy methods.
close() - Method in interface io.avaje.inject.RequestScope
Close the scope firing any @PreDestroy methods.
context() - Static method in class io.avaje.inject.SystemContext
Deprecated.
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.

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.InjectModule
The list of modules this scope 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.
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
 

F

Factory - Annotation Type in io.avaje.inject
A singleton bean that has methods marked with the @Bean annotation.

G

Generated - Annotation Type in io.avaje.inject.spi
Marks source code that has been generated.
get(Class<T>) - Static method in class io.avaje.inject.ApplicationScope
Return a single bean given the type.
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.RequestScope
Get a dependency.
get(Class<T>) - Method in interface io.avaje.inject.spi.Builder
Get a dependency.
get(Class<T>, String) - Static method in class io.avaje.inject.ApplicationScope
Return a single bean given the type and name.
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.RequestScope
Get a named 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.BeanScope
Deprecated.
getBean(Class<T>) - Static method in class io.avaje.inject.SystemContext
Deprecated.
getBean(Class<T>, String) - Method in interface io.avaje.inject.BeanScope
Deprecated.
getBean(Class<T>, String) - Static method in class io.avaje.inject.SystemContext
Deprecated.
getBeans(Class<T>) - Method in interface io.avaje.inject.BeanScope
Deprecated.
getBeans(Class<T>) - Static method in class io.avaje.inject.SystemContext
Deprecated.
getBeansByPriority(Class<T>) - Method in interface io.avaje.inject.BeanScope
Deprecated.
getBeansByPriority(Class<T>) - Static method in class io.avaje.inject.SystemContext
Deprecated.
getBeansByPriority(Class<T>, Class<? extends Annotation>) - Method in interface io.avaje.inject.BeanScope
Deprecated.
getBeansWithAnnotation(Class<?>) - Method in interface io.avaje.inject.BeanScope
Deprecated.
getBeansWithAnnotation(Class<?>) - Static method in class io.avaje.inject.SystemContext
Deprecated.
getDependsOn() - Method in interface io.avaje.inject.spi.BeanScopeFactory
Return the names of bean scopes (modules) that this is dependent on (they need to be built before this one).
getName() - Method in class io.avaje.inject.BeanEntry
Return the bean name.
getName() - Method in interface io.avaje.inject.spi.BeanScopeFactory
Return the name of the bean scope (module) this will create.
getNullable(Class<T>) - Method in interface io.avaje.inject.RequestScope
Get an optional dependency potentially returning null.
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.RequestScope
Get an optional named 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.RequestScope
Get an optional dependency.
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.RequestScope
Get an optional named 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).
getProvider(Class<T>) - Method in interface io.avaje.inject.RequestScope
Return Provider of T given the 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.RequestScope
Return Provider of T given the type and name.
getProvider(Class<T>, String) - Method in interface io.avaje.inject.spi.Builder
Return Provider of T given the type and name.
getProvides() - Method in interface io.avaje.inject.spi.BeanScopeFactory
Return the name of module features this module provides.
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
InjectModule - Annotation Type in io.avaje.inject
Used to explicitly name a bean scope and optionally specify if it depends on other bean scopes.
io.avaje.inject - package io.avaje.inject
Avaje Inject API - see ApplicationScope and BeanScope.
io.avaje.inject.spi - package io.avaje.inject.spi
Building bean scope 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(String, 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.

K

key() - Method in class io.avaje.inject.spi.EnrichBean
Return the key for this enriched bean.
keys() - Method in interface io.avaje.inject.RequestScopeMatch
Return all the keys that match the provider.

L

list(Class<T>) - Static method in class io.avaje.inject.ApplicationScope
Return the list of beans that implement the interface.
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.RequestScope
Get a list of dependencies for the interface type .
list(Class<T>) - Method in interface io.avaje.inject.spi.Builder
Get a list of dependencies for the interface type .
listByAnnotation(Class<?>) - Static method in class io.avaje.inject.ApplicationScope
Return the list of beans that have an annotation.
listByAnnotation(Class<?>) - Method in interface io.avaje.inject.BeanScope
Return the list of beans that have an annotation.
listByPriority(Class<T>) - Static method in class io.avaje.inject.ApplicationScope
Return the list of beans that implement the interface ordering based on @Priority.
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 @Bean annotated methods).

N

name() - Method in annotation type io.avaje.inject.InjectModule
The name of this context/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 test doubles.
newBuilder(List<SuppliedBean>, List<EnrichBean>) - Static method in interface io.avaje.inject.spi.Builder
Create the root level Builder.
newRequestScope() - Static method in class io.avaje.inject.ApplicationScope
Start building a RequestScope.
newRequestScope() - Method in interface io.avaje.inject.BeanScope
Create a RequestScope via builder where we provide extra instances that can be used/included in wiring request scoped beans.
NORMAL - Static variable in class io.avaje.inject.BeanEntry
A normal priority bean.

P

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 class io.avaje.inject.BeanEntry
An @Primary bean.
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 @ApplicationScope.listByPriority(Class).
provide(RequestScope) - Method in interface io.avaje.inject.RequestScopeProvider
Create and return the request scope bean instance.
provider() - Method in interface io.avaje.inject.RequestScopeMatch
Return the provider.
provides() - Method in annotation type io.avaje.inject.InjectModule
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) - 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.
Request - Annotation Type in io.avaje.inject
Marks a request scoped bean.
requestProvider(Class<T>, String) - Method in interface io.avaje.inject.BeanScope
Return a request scoped provided for the specific type and name.
requestScope() - Method in annotation type io.avaje.inject.spi.DependencyMeta
Request scope
requestScope(Class<T>, RequestScopeProvider<T>) - Method in interface io.avaje.inject.spi.Builder
Register a request scoped bean provider.
requestScope(Class<T>, RequestScopeProvider<T>, String, Class<?>...) - Method in interface io.avaje.inject.spi.Builder
Register a request scoped bean provider.
RequestScope - Interface in io.avaje.inject
Provides request scoped beans in addition to beans from the underlying bean scope.
RequestScopeBuilder - Interface in io.avaje.inject
Builder for RequestScope.
RequestScopeMatch<T> - Interface in io.avaje.inject
Match for request scope provider.
RequestScopeProvider<T> - Interface in io.avaje.inject
Provides request scoped beans.
requires() - Method in annotation type io.avaje.inject.InjectModule
The dependencies that are provided externally and required when wiring this module.

S

scope() - Static method in class io.avaje.inject.ApplicationScope
Return the underlying BeanScope.
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 @Secondary bean.
set(Class<T>) - Method in interface io.avaje.inject.RequestScope
Get a set of dependencies for the interface type .
set(Class<T>) - Method in interface io.avaje.inject.spi.Builder
Get a set of dependencies for the interface type .
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(String, Class<B>, B) - Constructor for class io.avaje.inject.spi.SuppliedBean
Create with a given target type and bean instance.
SuppliedBean(String, 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
Deprecated.

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.BeanScopeBuilder
Add a supplied bean instance with the given injection type.
withBean(Class<D>, D) - Method in interface io.avaje.inject.RequestScopeBuilder
Provide a bean that can be dependency of a request scoped bean.
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, Class<D>, D) - Method in interface io.avaje.inject.RequestScopeBuilder
Provide a bean that can be dependency of a request scoped bean.
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.
withIgnoreMissingModuleDependencies() - Method in interface io.avaje.inject.BeanScopeBuilder
Set this when building a BeanScope (typically for testing) and supplied beans replace module dependencies.
withMock(Class<?>) - Method in interface io.avaje.inject.BeanScopeBuilder
Use a mockito mock when injecting this bean type.
withMock(Class<?>, String) - Method in interface io.avaje.inject.BeanScopeBuilder
Register as a Mockito mock with a qualifier name.
withMock(Class<D>, Consumer<D>) - Method in interface io.avaje.inject.BeanScopeBuilder
Use a mockito mock when injecting this bean type additionally running setup on the mock instance.
withModules(String...) - Method in interface io.avaje.inject.BeanScopeBuilder
Specify the modules to include in dependency injection.
withNoShutdownHook() - Method in interface io.avaje.inject.BeanScopeBuilder
Deprecated.
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
Use a mockito spy when injecting this bean type.
withSpy(Class<?>, String) - Method in interface io.avaje.inject.BeanScopeBuilder
Register a Mockito spy with a qualifier name.
withSpy(Class<D>, Consumer<D>) - Method in interface io.avaje.inject.BeanScopeBuilder
Use a mockito spy when injecting this bean type additionally running setup on the spy instance.
A B C D E F G I K L M N P R S T V W 
All Classes|All Packages