|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.inject.rebind.binding.CallGwtDotCreateBinding
com.google.gwt.inject.rebind.binding.RemoteServiceProxyBinding
public class RemoteServiceProxyBinding
A binding that calls GWT.create()
for the non-"Async" version
of the requested type.
Method Summary | |
---|---|
protected void |
addParamTypes(MethodLiteral<?,?> method)
|
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. |
protected java.lang.String |
getExpectedTypeName()
|
java.lang.String |
getGetterMethodPackage()
Returns the package in which the getter for the bound key is created. |
java.util.Collection<TypeLiteral<?>> |
getMemberInjectRequests()
Returns the set of types for which this binding requires member injection methods to be written. |
TypeLiteral<?> |
getType()
|
protected java.lang.String |
getTypeName()
|
protected java.lang.String |
getTypeNameToCreate()
|
static boolean |
isRemoteServiceProxy(TypeLiteral<?> type)
|
Methods inherited from class com.google.gwt.inject.rebind.binding.CallGwtDotCreateBinding |
---|
getCreationStatement |
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, getGetterMethodPackage |
Method Detail |
---|
public static boolean isRemoteServiceProxy(TypeLiteral<?> type)
protected java.lang.String getTypeNameToCreate() throws NoSourceNameException
getTypeNameToCreate
in class CallGwtDotCreateBinding
NoSourceNameException
protected java.lang.String getExpectedTypeName() throws NoSourceNameException
getExpectedTypeName
in class CallGwtDotCreateBinding
NoSourceNameException
public SourceSnippet getCreationStatements(NameGenerator nameGenerator, java.util.List<InjectorMethod> methodsOutput) throws NoSourceNameException
Binding
result
. 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 Binding
NoSourceNameException
- if source name is not available for typepublic java.util.Collection<Dependency> getDependencies()
Binding
Dependency.GINJECTOR
) as well as dependencies that
this binding needs.
getDependencies
in interface Binding
public TypeLiteral<?> getType()
protected java.lang.String getTypeName() throws NoSourceNameException
NoSourceNameException
protected void addParamTypes(MethodLiteral<?,?> method)
public java.util.Collection<TypeLiteral<?>> getMemberInjectRequests()
Binding
getMemberInjectRequests
in interface Binding
public Context getContext()
Binding
getContext
in interface Binding
public java.lang.String getGetterMethodPackage()
Binding
GinjectorBindings
objects.
Typically this will be the package containing the type that is returned by the getter, but the only requirement is that it has to be a package where the return type is visible.
getGetterMethodPackage
in interface Binding
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |