public class Injector extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class<?>,Binding<?>> |
bindings |
protected Set<Module> |
modules |
protected Map<Class<?>,Provider<?>> |
providers |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(Class<T> instanceClass) |
protected <T> T |
get(Class<T> instanceClass,
AnnotatedElement annotatedElement,
InjectionContext ctx) |
void |
injectMembers(Object instance) |
protected void |
injectMembers(Object instance,
Class<?> classWithMembers,
InjectionContext ctx) |
protected void |
postProcess(InjectionContext ctx) |
public Injector(Module... modules)
public void injectMembers(Object instance)
protected void postProcess(InjectionContext ctx)
protected void injectMembers(Object instance, Class<?> classWithMembers, InjectionContext ctx)
public <T> T get(Class<T> instanceClass)
protected <T> T get(Class<T> instanceClass, AnnotatedElement annotatedElement, InjectionContext ctx)
Copyright © 2017. All rights reserved.