com.google.gwt.inject.rebind.binding
Class RemoteServiceProxyBinding
java.lang.Object
com.google.gwt.inject.rebind.binding.CallGwtDotCreateBinding
com.google.gwt.inject.rebind.binding.RemoteServiceProxyBinding
- All Implemented Interfaces:
- Binding
public class RemoteServiceProxyBinding
- extends CallGwtDotCreateBinding
A binding that calls GWT.create()
for the non-"Async" version
of the requested type.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteServiceProxyBinding
@Inject
public RemoteServiceProxyBinding(SourceWriteUtil sourceWriteUtil,
KeyUtil keyUtil,
com.google.gwt.core.ext.GeneratorContext ctx)
getTypeNameToCreate
protected java.lang.String getTypeNameToCreate()
- Overrides:
getTypeNameToCreate
in class CallGwtDotCreateBinding
isRemoteServiceProxy
public static boolean isRemoteServiceProxy(com.google.gwt.core.ext.typeinfo.JClassType type)
setClassType
public void setClassType(com.google.gwt.core.ext.typeinfo.JClassType classType,
Key<?> classKey)
writeCreatorMethods
public final void writeCreatorMethods(com.google.gwt.user.rebind.SourceWriter writer,
java.lang.String creatorMethodSignature)
- Description copied from interface:
Binding
- Writes the method necessary to create the binding's type to the writer.
A method with the
creatorMethodSignature
must be written,
other methods are optional.
- Specified by:
writeCreatorMethods
in interface Binding
- Parameters:
writer
- writer that methods are written tocreatorMethodSignature
- signature of method that needs to be created
getRequiredKeys
public RequiredKeys getRequiredKeys()
- Specified by:
getRequiredKeys
in interface Binding
- Returns:
- A tuple of two sets: One set of keys that this binding requires.
This set is used to find more classes that need to be bound. The
second set contains all keys that have been optionally requested.
getClassType
public com.google.gwt.core.ext.typeinfo.JClassType getClassType()
getTypeName
protected java.lang.String getTypeName()
addParamTypes
protected void addParamTypes(com.google.gwt.core.ext.typeinfo.JAbstractMethod method)