Package | Description |
---|---|
dagger.internal | |
dagger.internal.codegen | |
dagger.internal.loaders |
Modifier and Type | Class and Description |
---|---|
class |
ProvidesBinding<T>
A
Binding<T> which delegates to a module method. |
class |
SetBinding<T>
A
Binding<T> which contains contributors (other bindings marked with
@Provides @OneOf ), to which it delegates provision
requests on an as-needed basis. |
Modifier and Type | Field and Description |
---|---|
static Binding<Object> |
Binding.UNRESOLVED |
Modifier and Type | Method and Description |
---|---|
Binding<?> |
BindingsGroup.contributeProvidesBinding(String key,
ProvidesBinding<?> value) |
abstract Binding<?> |
BindingsGroup.contributeSetBinding(String key,
SetBinding<?> value) |
Binding<?> |
BindingsGroup.get(String key) |
Binding<?> |
FailoverLoader.getAtInjectBinding(String key,
String className,
ClassLoader classLoader,
boolean mustHaveInjections) |
abstract Binding<?> |
Loader.getAtInjectBinding(String key,
String className,
ClassLoader classLoader,
boolean mustHaveInjections)
Returns a binding that uses
@Inject annotations, or null if no valid binding can
be found or created. |
protected Binding<?> |
BindingsGroup.put(String key,
Binding<?> value) |
Binding<?> |
Linker.requestBinding(String key,
Object requiredBy)
Deprecated.
Older, generated code still using this should be re-generated.
|
Binding<?> |
Linker.requestBinding(String key,
Object requiredBy,
boolean mustHaveInjections,
boolean library)
Deprecated.
Older, generated code still using this should be re-generated.
|
Binding<?> |
Linker.requestBinding(String key,
Object requiredBy,
ClassLoader classLoader)
Returns the binding if it exists immediately.
|
Binding<?> |
Linker.requestBinding(String key,
Object requiredBy,
ClassLoader classLoader,
boolean mustHaveInjections,
boolean library)
Returns the binding if it exists immediately.
|
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<String,Binding<?>>> |
BindingsGroup.entrySet() |
Map<String,Binding<?>> |
Linker.fullyLinkedBindings()
Returns the map of all bindings available to this
Linker , if and only if
Linker.linkAll() has successfully returned at least once, otherwise it returns null; |
Map<String,Binding<?>> |
Linker.linkAll()
Links all known bindings (whether requested or installed), plus all of their
transitive dependencies.
|
Modifier and Type | Method and Description |
---|---|
static <T> void |
SetBinding.add(BindingsGroup bindings,
String setKey,
Binding<?> binding) |
protected Binding<?> |
BindingsGroup.put(String key,
Binding<?> value) |
Modifier and Type | Method and Description |
---|---|
void |
ProblemDetector.detectCircularDependencies(Collection<Binding<?>> bindings) |
void |
ProblemDetector.detectProblems(Collection<Binding<?>> values) |
void |
ProblemDetector.detectUnusedBinding(Collection<Binding<?>> bindings) |
void |
Binding.getDependencies(Set<Binding<?>> getBindings,
Set<Binding<?>> injectMembersBindings)
Populates
getBindings and injectMembersBindings with the
bindings used by this binding to satisfy get() and injectMembers(T) calls, respectively. |
void |
Binding.getDependencies(Set<Binding<?>> getBindings,
Set<Binding<?>> injectMembersBindings)
Populates
getBindings and injectMembersBindings with the
bindings used by this binding to satisfy get() and injectMembers(T) calls, respectively. |
void |
SetBinding.getDependencies(Set<Binding<?>> getBindings,
Set<Binding<?>> injectMembersBindings) |
void |
SetBinding.getDependencies(Set<Binding<?>> getBindings,
Set<Binding<?>> injectMembersBindings) |
Modifier and Type | Method and Description |
---|---|
Binding<?> |
GraphAnalysisLoader.getAtInjectBinding(String key,
String className,
ClassLoader classLoader,
boolean mustHaveInjections) |
Modifier and Type | Method and Description |
---|---|
void |
GraphVisualizer.write(Map<String,Binding<?>> bindings,
GraphVizWriter writer) |
Modifier and Type | Class and Description |
---|---|
class |
ReflectiveAtInjectBinding<T>
Injects the
@Inject -annotated fields and constructors of a class
using reflection. |
Modifier and Type | Method and Description |
---|---|
static <T> Binding<T> |
ReflectiveAtInjectBinding.create(Class<T> type,
boolean mustHaveInjections) |
Modifier and Type | Method and Description |
---|---|
void |
ReflectiveAtInjectBinding.getDependencies(Set<Binding<?>> get,
Set<Binding<?>> injectMembers) |
void |
ReflectiveAtInjectBinding.getDependencies(Set<Binding<?>> get,
Set<Binding<?>> injectMembers) |
Copyright © 2019 Square, Inc.. All rights reserved.