Skip navigation links
A B C D E F G I L N P R S T W 

A

addChild(BeanContext) - Method in interface io.dinject.core.Builder
Add a child context.
addInjector(Consumer<Builder>) - Method in interface io.dinject.core.Builder
Add a field injector.
addLifecycle(BeanLifecycle) - Method in interface io.dinject.core.Builder
Add a lifecycle bean.

B

Bean - Annotation Type in io.dinject
Marks methods on a @Factory bean that create dependencies.
BeanContext - Interface in io.dinject
Holds beans created by dependency injection.
BeanContextBuilder - Class in io.dinject
Build a bean context with options for shutdown hook and supplying test doubles.
BeanContextBuilder() - Constructor for class io.dinject.BeanContextBuilder
Create a BeanContextBuilder to ultimately load and return a new BeanContext.
BeanContextFactory - Interface in io.dinject.core
This is the service loader interface defining the bean contexts that can be created.
BeanEntry<T> - Class in io.dinject
A bean entry in the context with priority and optional name.
BeanEntry(int, T, String) - Constructor for class io.dinject.BeanEntry
Construct with priorty, name and the bean.
BeanLifecycle - Interface in io.dinject.core
Lifecycle of beans via @PostConstruct and @PreDestroy.
BootContext - Class in io.dinject
Deprecated.
BootContext() - Constructor for class io.dinject.BootContext
Deprecated.
 
build() - Method in class io.dinject.BeanContextBuilder
Build and return the bean context.
build() - Method in interface io.dinject.core.Builder
Build and return the bean context.
Builder - Interface in io.dinject.core
Mutable builder object used when building a bean context.
BuilderFactory - Class in io.dinject.core
Factory for creating Builder instances.

C

candidate(Class<T>, String) - Method in interface io.dinject.BeanContext
Return the wiring candidate bean with name and priority.
candidate(Class<T>, String) - Method in interface io.dinject.core.Builder
Get a candidate dependency allowing it to be null.
close() - Method in interface io.dinject.BeanContext
Close the context firing any @PreDestroy methods.
context() - Static method in class io.dinject.SystemContext
Return the underlying BeanContext.
ContextModule - Annotation Type in io.dinject
Used to explicitly name a bean context and optionally specify if it depends on other bean contexts.
createContext(Builder) - Method in interface io.dinject.core.BeanContextFactory
Create and return the BeanContext.

D

DependencyMeta - Annotation Type in io.dinject.core
Hold bean dependency meta data intended for internal use by code generation (Java annotation processing).

E

enrich(T, Class<?>[]) - Method in interface io.dinject.core.Builder
Return a potentially enriched bean for registration into the context.
enrich(B) - Method in class io.dinject.core.EnrichBean
Return the spy enhanced bean instance to use.
EnrichBean<B> - Class in io.dinject.core
Holds Spy setup consumers for dependency injection using Mockito Spy.
EnrichBean(Class<B>, Consumer<B>) - Constructor for class io.dinject.core.EnrichBean
 

F

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

G

get(Class<T>) - Method in interface io.dinject.core.Builder
Get a dependency.
get(Class<T>, String) - Method in interface io.dinject.core.Builder
Get a named dependency.
getBean(Class<T>) - Method in interface io.dinject.BeanContext
Return a single bean given the type.
getBean(Class<T>, String) - Method in interface io.dinject.BeanContext
Return a single bean given the type and name.
getBean() - Method in class io.dinject.BeanEntry
Return the bean.
getBean() - Method in class io.dinject.core.SuppliedBean
Return the bean instance to use (often a test double or mock).
getBean(Class<T>) - Static method in class io.dinject.SystemContext
Return a single bean given the type.
getBean(Class<T>, String) - Static method in class io.dinject.SystemContext
Return a single bean given the type and name.
getBeans(Class<T>) - Method in interface io.dinject.BeanContext
Return the list of beans that implement the interface.
getBeans(Class<T>) - Static method in class io.dinject.SystemContext
Return the list of beans that implement the interface.
getBeansByPriority(Class<T>) - Method in interface io.dinject.BeanContext
Return the list of beans that implement the interface sorting by priority (ignoring any Priority annotation).
getBeansByPriority(Class<T>) - Static method in class io.dinject.SystemContext
Return the list of beans that implement the interface ordering based on @Priority.
getBeansWithAnnotation(Class<?>) - Method in interface io.dinject.BeanContext
Return the list of beans that have an annotation.
getBeansWithAnnotation(Class<?>) - Static method in class io.dinject.SystemContext
Return the list of beans that have an annotation.
getDependsOn() - Method in interface io.dinject.BeanContext
Return the names of modules this bean context depends on.
getDependsOn() - Method in interface io.dinject.core.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.dinject.core.Builder
Return the names of modules that this module depends on.
getList(Class<T>) - Method in interface io.dinject.core.Builder
Get a list of dependencies for the interface type .
getName() - Method in interface io.dinject.BeanContext
Return the module name of the bean context.
getName() - Method in class io.dinject.BeanEntry
Return the bean name.
getName() - Method in interface io.dinject.core.BeanContextFactory
Return the name of the bean context (module) this will create.
getName() - Method in interface io.dinject.core.Builder
Return the name of the (module) context this builder is creating.
getOptional(Class<T>) - Method in interface io.dinject.core.Builder
Get an optional dependency.
getOptional(Class<T>, String) - Method in interface io.dinject.core.Builder
Get an optional named dependency.
getPriority() - Method in class io.dinject.BeanEntry
Return the priority (Primary, Normal and Secondary).
getProvides() - Method in interface io.dinject.BeanContext
Return the names of module features this bean context provides.
getProvides() - Method in interface io.dinject.core.BeanContextFactory
Return the name of module features this module provides.
getProvides() - Method in interface io.dinject.core.Builder
Return the names of module features that this module provides.
getSet(Class<T>) - Method in interface io.dinject.core.Builder
Get a set of dependencies for the interface type .
getType() - Method in class io.dinject.core.EnrichBean
Return the dependency injection target type.
getType() - Method in class io.dinject.core.SuppliedBean
Return the dependency injection target type.

I

io.dinject - package io.dinject
DInject API - see SystemContext and BeanContext.
io.dinject.core - package io.dinject.core
Building bean context objects expected to only be used by generated code.
isAddBeanFor(Class<?>, Class<?>) - Method in interface io.dinject.core.Builder
Return true if the bean should be created and registered with the context.
isAddBeanFor(Class<?>) - Method in interface io.dinject.core.Builder
Return true if the bean should be created and registered with the context.
isPrimary() - Method in class io.dinject.BeanEntry
Return true if this entry has Primary priority.
isSecondary() - Method in class io.dinject.BeanEntry
Return true if this entry has Secondary priority.
isSupplied() - Method in class io.dinject.BeanEntry
Return true if this entry has Supplied priority.

L

load() - Method in class io.dinject.BeanContextBuilder
Deprecated.

N

newBuilder(String, String[], String[]) - Static method in class io.dinject.core.BuilderFactory
Create a Builder for the named context (module).
newRootBuilder(List<SuppliedBean>, List<EnrichBean>) - Static method in class io.dinject.core.BuilderFactory
Create the root level Builder.
NORMAL - Static variable in class io.dinject.BeanEntry
A normal priority bean.

P

postConstruct() - Method in interface io.dinject.core.BeanLifecycle
Fire post construction.
preDestroy() - Method in interface io.dinject.core.BeanLifecycle
Fire on shutdown or close of the bean context.
PRIMARY - Static variable in class io.dinject.BeanEntry
An @Primary bean.
Primary - Annotation Type in io.dinject
Identify a bean as being the preferred bean to inject when multiple beans implement the intended interface.

R

register(T, String, Class<?>...) - Method in interface io.dinject.core.Builder
Register the bean instance into the context.
registerPrimary(T, String, Class<?>...) - Method in interface io.dinject.core.Builder
Register the bean as a Primary bean.
registerSecondary(T, String, Class<?>...) - Method in interface io.dinject.core.Builder
Register the bean as a secondary bean.

S

SECONDARY - Static variable in class io.dinject.BeanEntry
A @Secondary bean.
Secondary - Annotation Type in io.dinject
Identify a bean as being the least preferred bean to inject when multiple beans implement the intended interface.
setParent(Builder) - Method in interface io.dinject.core.Builder
Set a parent builder that can provide cross-module dependencies.
sortByPriority(List<T>) - Method in interface io.dinject.BeanContext
Sort the beans by javax.annotation.Priority annotation.
start() - Method in interface io.dinject.BeanContext
Start the context firing any @PostConstruct methods.
SUPPLIED - Static variable in class io.dinject.BeanEntry
An explicitly supplied bean.
SuppliedBean<B> - Class in io.dinject.core
Holds beans supplied to the dependency injection.
SuppliedBean(Class<B>, B) - Constructor for class io.dinject.core.SuppliedBean
Create with a given target type and bean instance.
SuppliedBean(Class<B>, B, Consumer<B>) - Constructor for class io.dinject.core.SuppliedBean
Create with a consumer to setup the mock.
SystemContext - Class in io.dinject
Provides a global system wide BeanContext that contains all the bean contexts in the classpath.

T

toString() - Method in class io.dinject.BeanEntry
 

W

withBean(Class<D>, D) - Method in class io.dinject.BeanContextBuilder
Add a supplied bean instance with the given injection type.
withBeans(Object...) - Method in class io.dinject.BeanContextBuilder
Supply a bean to the context that will be used instead of any similar bean in the context.
withIgnoreMissingModuleDependencies() - Method in class io.dinject.BeanContextBuilder
Set this when building a BeanContext (typically for testing) and supplied beans replace module dependencies.
withMock(Class<?>) - Method in class io.dinject.BeanContextBuilder
Use a mockito mock when injecting this bean type.
withMock(Class<D>, Consumer<D>) - Method in class io.dinject.BeanContextBuilder
Use a mockito mock when injecting this bean type additionally running setup on the mock instance.
withModules(String...) - Method in class io.dinject.BeanContextBuilder
Specify the modules to include in dependency injection.
withNoShutdownHook() - Method in class io.dinject.BeanContextBuilder
Boot the bean context without registering a shutdown hook.
withSpy(Class<?>) - Method in class io.dinject.BeanContextBuilder
Use a mockito spy when injecting this bean type.
withSpy(Class<D>, Consumer<D>) - Method in class io.dinject.BeanContextBuilder
Use a mockito spy when injecting this bean type additionally running setup on the spy instance.
A B C D E F G I L N P R S T W 
Skip navigation links

Copyright © 2020. All rights reserved.