Modifier and Type | Method and Description |
---|---|
GinjectorBindings |
GinjectorBindings.createChildGinjectorBindings(Class<?> module)
Create a new
GinjectorBindings that collects bindings for an injector that is the
child of this GinjectorBindings . |
GinjectorBindings |
GinjectorBindings.getChildWhichBindsLocally(Key<?> key)
Returns the child injector which binds the given key.
|
GinjectorBindings |
GinjectorBindings.getParent() |
Modifier and Type | Method and Description |
---|---|
Iterable<GinjectorBindings> |
GinjectorBindings.getChildren() |
Modifier and Type | Method and Description |
---|---|
void |
DoubleBindingChecker.checkBindings(GinjectorBindings ginjector) |
void |
DoubleBindingChecker.checkBindings(GinjectorBindings ginjector,
Map<Key<?>,GinjectorBindings> bindingSources) |
GuiceElementVisitor |
GuiceElementVisitor.GuiceElementVisitorFactory.create(GinjectorBindings bindingsCollection) |
String |
GinjectorNameGenerator.getCanonicalClassName(GinjectorBindings bindings) |
String |
GinjectorNameGenerator.getClassName(GinjectorBindings bindings) |
String |
GinjectorNameGenerator.getFieldName(GinjectorBindings bindings) |
void |
ErrorManager.logDoubleBind(Key<?> key,
Binding binding1,
GinjectorBindings ginjector1,
Binding binding2,
GinjectorBindings ginjector2) |
void |
GinjectorBindings.setParent(GinjectorBindings parent) |
Modifier and Type | Method and Description |
---|---|
void |
DoubleBindingChecker.checkBindings(GinjectorBindings ginjector,
Map<Key<?>,GinjectorBindings> bindingSources) |
Constructor and Description |
---|
GuiceBindingVisitor(Key<T> targetKey,
List<Message> messages,
GinjectorBindings bindingsCollection,
BindingFactory bindingFactory) |
GuiceElementVisitor(TreeLogger logger,
GuiceElementVisitor.GuiceElementVisitorFactory guiceElementVisitorFactory,
GuiceBindingVisitorFactory bindingVisitorFactory,
ErrorManager errorManager,
GinjectorBindings bindings,
BindingFactory bindingFactory) |
Constructor and Description |
---|
GinjectorBindings(NameGenerator nameGenerator,
TreeLogger logger,
GuiceUtil guiceUtil,
Class<? extends Ginjector> ginjectorInterface,
javax.inject.Provider<GinjectorBindings> ginjectorBindingsProvider,
MemberCollector collector,
ErrorManager errorManager,
BindingResolver bindingResolver) |
Constructor and Description |
---|
GinModuleAdapter(GinModule ginModule,
GinjectorBindings bindings) |
GinModuleAdapter(GinModule ginModule,
GinjectorBindings bindings,
boolean hideChildModules) |
PrivateGinModuleAdapter(PrivateGinModule ginModule,
GinjectorBindings bindings) |
Modifier and Type | Method and Description |
---|---|
GinjectorBindings |
ExposedChildBinding.getChildBindings() |
GinjectorBindings |
ParentBinding.getParentBindings() |
Modifier and Type | Method and Description |
---|---|
ExposedChildBinding |
BindingFactory.getExposedChildBinding(Key<?> key,
GinjectorBindings childBindings,
Context context) |
ExposedChildBinding |
BindingFactoryImpl.getExposedChildBinding(Key<?> key,
GinjectorBindings childBindings,
Context context) |
ParentBinding |
BindingFactory.getParentBinding(Key<?> key,
GinjectorBindings parentBindings,
Context context) |
ParentBinding |
BindingFactoryImpl.getParentBinding(Key<?> key,
GinjectorBindings parentBindings,
Context context) |
Constructor and Description |
---|
ExposedChildBinding(ErrorManager errorManager,
Key<?> key,
GinjectorBindings childBindings,
Context context) |
Modifier and Type | Method and Description |
---|---|
void |
GinjectorImplOutputter.write(String packageName,
String implClassName,
PrintWriter printWriter,
GinjectorBindings rootBindings)
Writes the implementation of the
Ginjector interface associated
with the given GinjectorBindings object, if any, along with all the
injector classes and fragment classes required by the implementation. |
Modifier and Type | Method and Description |
---|---|
GinjectorBindings |
DependencyGraph.getOrigin() |
Modifier and Type | Method and Description |
---|---|
Map<Key<?>,GinjectorBindings> |
DependencyExplorer.DependencyExplorerOutput.getPreExistingLocations()
Returns a map from each
Key<?> that was already available in the injector hierarchy
to the Ginjector on which it was found. |
Modifier and Type | Method and Description |
---|---|
DependencyExplorer.DependencyExplorerOutput |
DependencyExplorer.explore(GinjectorBindings origin)
Explore the unresolved dependencies in the origin Ginjector, and create the corresponding
dependency graph.
|
void |
BindingResolver.resolveBindings(GinjectorBindings origin) |
Constructor and Description |
---|
Builder(GinjectorBindings origin)
Creates a Builder that constructs a new DependencyGraph for the given origin Ginjector.
|
Modifier and Type | Method and Description |
---|---|
String |
InjectorWriteContext.callChildGetter(GinjectorBindings childBindings,
Key<?> key)
Generates a Java expression that evaluates to an injected instance of the
given key, as produced by the given child.
|
static SourceSnippet |
SourceSnippets.callChildGetter(GinjectorBindings childBindings,
Key<?> key)
Creates a snippet that evaluates to an injected instance of the given key,
as produced by the given child.
|
String |
InjectorWriteContext.callParentGetter(Key<?> key,
GinjectorBindings parentBindings)
Generates a Java expression that evaluates to an injected instance of the
given key, as produced by the given parent injector.
|
static SourceSnippet |
SourceSnippets.callParentGetter(Key<?> key,
GinjectorBindings parentBindings)
Creates a snippet that evaluates to an injected instance of the given key,
as produced by the given parent injector.
|
Copyright © 2008–2018. All rights reserved.