Known Direct Subclasses
RpcProxyCreator |
Generates async proxy implementations using the RPC system. |
|
Class Overview
Creates a client-side proxy for a
RemoteService
interface
as well as the necessary type and field serializers.
Summary
Public Methods |
String
|
create(TreeLogger logger, GeneratorContextExt context)
Creates the client-side proxy class.
|
Protected Methods |
void
|
addRoots(TreeLogger logger, TypeOracle typeOracle, SerializableTypeOracleBuilder typesSentFromBrowserBuilder, SerializableTypeOracleBuilder typesSentToBrowserBuilder)
|
String
|
computeTypeNameExpression(JType paramType)
|
void
|
generateCheckRpcTokenTypeOverride(SourceWriter srcWriter, TypeOracle typeOracle, SerializableTypeOracle typesSentFromBrowser)
|
void
|
generateProxyContructor(SourceWriter srcWriter)
Generate the proxy constructor and delegate to the superclass constructor
using the default address for the
RemoteService .
|
void
|
generateProxyFields(SourceWriter srcWriter, SerializableTypeOracle serializableTypeOracle, String serializationPolicyStrongName, String remoteServiceInterfaceName)
Generate any fields required by the proxy.
|
void
|
generateProxyMethod(SourceWriter w, SerializableTypeOracle serializableTypeOracle, TypeOracle typeOracle, JMethod syncMethod, JMethod asyncMethod)
Generates the client's asynchronous proxy method.
|
void
|
generateProxyMethods(SourceWriter w, SerializableTypeOracle serializableTypeOracle, TypeOracle typeOracle, Map<JMethod, JMethod> syncMethToAsyncMethMap)
|
void
|
generateRpcStatsContext(SourceWriter w, JMethod syncMethod, JMethod asyncMethod, String statsContextName)
|
void
|
generateStreamWriterOverride(SourceWriter srcWriter)
|
void
|
generateTypeHandlers(TreeLogger logger, GeneratorContextExt context, SerializableTypeOracle typesSentFromBrowser, SerializableTypeOracle typesSentToBrowser)
|
String
|
getProxySimpleName()
|
Class<? extends RemoteServiceProxy>
|
getProxySupertype()
|
String
|
getRemoteServiceRelativePath()
|
Class<? extends SerializationStreamWriter>
|
getStreamWriterClass()
|
String
|
writeSerializationPolicyFile(TreeLogger logger, GeneratorContextExt ctx, SerializableTypeOracle serializationSto, SerializableTypeOracle deserializationSto)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
String
MANIFEST_ARTIFACT_DIR
The directory within which RPC manifests are placed for individual
permutations.
Constant Value:
"rpcPolicyManifest/manifests"
Fields
protected
JClassType
serviceIntf
Public Constructors
public
ProxyCreator
(JClassType serviceIntf)
Public Methods
public
String
create
(TreeLogger logger, GeneratorContextExt context)
Creates the client-side proxy class.
Throws
UnableToCompleteException
| |
Protected Methods
protected
String
computeTypeNameExpression
(JType paramType)
protected
void
generateProxyContructor
(SourceWriter srcWriter)
Generate the proxy constructor and delegate to the superclass constructor
using the default address for the
RemoteService
.
protected
void
generateProxyFields
(SourceWriter srcWriter, SerializableTypeOracle serializableTypeOracle, String serializationPolicyStrongName, String remoteServiceInterfaceName)
Generate any fields required by the proxy.
Parameters
serializableTypeOracle
| the type oracle
|
protected
void
generateProxyMethod
(SourceWriter w, SerializableTypeOracle serializableTypeOracle, TypeOracle typeOracle, JMethod syncMethod, JMethod asyncMethod)
Generates the client's asynchronous proxy method.
Parameters
serializableTypeOracle
| the type oracle
|
protected
void
generateRpcStatsContext
(SourceWriter w, JMethod syncMethod, JMethod asyncMethod, String statsContextName)
protected
void
generateStreamWriterOverride
(SourceWriter srcWriter)
protected
String
getProxySimpleName
()
protected
String
getRemoteServiceRelativePath
()