|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.inject.rebind.binding.ExposedChildBinding
public class ExposedChildBinding
Binding that represents a value exposed to this level from lower in the injector hierarchy.
TODO(bchambers): As with ParentBinding it would be nice if this didn't need the
no-op creator method.
| Constructor Summary | |
|---|---|
ExposedChildBinding(ErrorManager errorManager,
Key<?> key,
GinjectorBindings childBindings,
Context context)
|
|
| Method Summary | |
|---|---|
GinjectorBindings |
getChildBindings()
|
Context |
getContext()
Returns the context in which this binding was created. |
SourceSnippet |
getCreationStatements(NameGenerator nameGenerator,
java.util.List<InjectorMethod> methodsOutput)
Gets one or more fully formed Java statements that create the bound value and store it in a new local variable named result. |
java.util.Collection<Dependency> |
getDependencies()
Returns the set of dependencies that this binding produces. |
java.lang.String |
getGetterMethodPackage()
The getter must be placed in the same package as the child getter, to ensure that its return type is visible. |
java.util.Collection<TypeLiteral<?>> |
getMemberInjectRequests()
Returns the set of types for which this binding requires member injection methods to be written. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.gwt.inject.rebind.binding.Binding |
|---|
getContext, getMemberInjectRequests |
| Constructor Detail |
|---|
public ExposedChildBinding(ErrorManager errorManager,
Key<?> key,
GinjectorBindings childBindings,
Context context)
| Method Detail |
|---|
public java.lang.String getGetterMethodPackage()
getGetterMethodPackage in interface Bindingpublic GinjectorBindings getChildBindings()
public SourceSnippet getCreationStatements(NameGenerator nameGenerator,
java.util.List<InjectorMethod> methodsOutput)
throws NoSourceNameException
Bindingresult. If additional
methods are to be created, the given NameGenerator should be used
to choose their names, and they should be added to methodsOutput.
getCreationStatements in interface BindingNoSourceNameException - if source name is not available for typepublic java.util.Collection<Dependency> getDependencies()
BindingDependency.GINJECTOR) as well as dependencies that
this binding needs.
getDependencies in interface Bindingpublic Context getContext()
Binding
getContext in interface Bindingpublic java.util.Collection<TypeLiteral<?>> getMemberInjectRequests()
Binding
getMemberInjectRequests in interface Binding
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||