Skip navigation links
A B C D F G I L N P R S 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.
BeanContextFactory - Interface in io.dinject.core
This is the service loader interface defining the bean contexts that can be created.
BeanLifecycle - Interface in io.dinject.core
Lifecycle of beans via @PostConstruct and @PreDestroy.
BootContext - Class in io.dinject
Boot and create a bean context with options for shutdown hook and supplying test doubles.
BootContext() - Constructor for class io.dinject.BootContext
Create a BootContext to ultimately load and return a new BeanContext.
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.
BuilderFactory() - Constructor for class io.dinject.core.BuilderFactory
 

C

close() - Method in interface io.dinject.BeanContext
Close the context firing any @PreDestroy methods.
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).

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(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.
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 .
getMaybe(Class<T>, String) - Method in interface io.dinject.core.Builder
Get a named dependency allowing it to be null.
getName() - Method in interface io.dinject.BeanContext
Return the module name of the bean context.
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.

I

io.dinject - package io.dinject
DInject dependency injection API.
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.

L

load() - Method in class io.dinject.BootContext
Build and return the bean context.

N

newBuilder(String, String...) - Static method in class io.dinject.core.BuilderFactory
Create a Builder for the named context (module).
newRootBuilder(List<Object>) - Static method in class io.dinject.core.BuilderFactory
Create the root level Builder.

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.

R

register(Object, String, Class<?>...) - Method in interface io.dinject.core.Builder
Register the bean instance into the context.

S

setParent(Builder) - Method in interface io.dinject.core.Builder
Set a parent builder that can provide cross-module dependencies.
start() - Method in interface io.dinject.BeanContext
Start the context firing any @PostConstruct methods.
SystemContext - Class in io.dinject
Provides a global system wide BeanContext that contains all the bean contexts in the classpath.

W

withBeans(Object...) - Method in class io.dinject.BootContext
Supply a bean to the context that will be used instead of any similar bean in the context.
withModules(String...) - Method in class io.dinject.BootContext
Specify the modules to include in dependency injection.
withNoShutdownHook() - Method in class io.dinject.BootContext
Boot the bean context without registering a shutdown hook.
A B C D F G I L N P R S W 
Skip navigation links

Copyright © 2018. All rights reserved.