public class ParentBinding extends Object implements Binding
| Modifier and Type | Method and Description |
|---|---|
Context |
getContext()
Returns the context in which this binding was created.
|
SourceSnippet |
getCreationStatements(NameGenerator nameGenerator,
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. |
Collection<Dependency> |
getDependencies()
Returns the set of dependencies that this binding produces.
|
String |
getGetterMethodPackage()
The getter must be placed in the same package as the parent getter, to ensure that its return
type is visible.
|
Collection<TypeLiteral<?>> |
getMemberInjectRequests()
Returns the set of types for which this binding requires member injection methods to be
written.
|
GinjectorBindings |
getParentBindings() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContext, getMemberInjectRequestspublic String getGetterMethodPackage()
getGetterMethodPackage in interface Bindingpublic GinjectorBindings getParentBindings()
public SourceSnippet getCreationStatements(NameGenerator nameGenerator, 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 Collection<Dependency> getDependencies()
BindingDependency.GINJECTOR) as well as dependencies that
this binding needs.getDependencies in interface Bindingpublic Context getContext()
BindinggetContext in interface Bindingpublic Collection<TypeLiteral<?>> getMemberInjectRequests()
BindinggetMemberInjectRequests in interface BindingCopyright © 2008–2018. All rights reserved.