org.cruxframework.crux.core.rebind.rpc
Class CruxProxyCreator
java.lang.Object
com.google.gwt.user.rebind.rpc.ProxyCreator
org.cruxframework.crux.core.rebind.rpc.CruxProxyCreator
public class CruxProxyCreator
- extends com.google.gwt.user.rebind.rpc.ProxyCreator
This class overrides the GWT Proxy Creator to add a wrapper class around the original generated class.
The wrapper has two goals:
- Point all requests that does not inform an endPoint to the Crux FrontController Servlet.
- Handle security issues like SynchronizationToken for sensitive methods.
- Author:
- Thiago da Rosa de Bustamante
| Fields inherited from class com.google.gwt.user.rebind.rpc.ProxyCreator |
CACHED_PROPERTY_INFO_KEY, CACHED_TYPE_INFO_KEY, MANIFEST_ARTIFACT_DIR, serviceIntf |
|
Constructor Summary |
CruxProxyCreator(com.google.gwt.core.ext.typeinfo.JClassType type)
|
| Methods inherited from class com.google.gwt.user.rebind.rpc.ProxyCreator |
addRoots, computeTypeNameExpression, generateCheckRpcTokenTypeOverride, generateProxyContructor, generateProxyFields, generateProxyMethod, generateProxyMethods, generateRpcStatsContext, generateStreamWriterOverride, generateTypeHandlers, getProxySimpleName, getProxySupertype, getStreamWriterClass, writeSerializationPolicyFile |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CruxProxyCreator
public CruxProxyCreator(com.google.gwt.core.ext.typeinfo.JClassType type)
- Parameters:
type -
create
public com.google.gwt.core.ext.RebindResult create(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context)
throws com.google.gwt.core.ext.UnableToCompleteException
- Overrides:
create in class com.google.gwt.user.rebind.rpc.ProxyCreator
- Throws:
com.google.gwt.core.ext.UnableToCompleteException- See Also:
ProxyCreator.create(com.google.gwt.core.ext.TreeLogger, com.google.gwt.core.ext.GeneratorContext)
getPackageAndClassName
protected String[] getPackageAndClassName(String fullClassName)
- Parameters:
fullClassName -
- Returns:
getRemoteServiceRelativePath
protected String getRemoteServiceRelativePath()
- Overrides:
getRemoteServiceRelativePath in class com.google.gwt.user.rebind.rpc.ProxyCreator
- See Also:
ProxyCreator.getRemoteServiceRelativePath()
Copyright © 2014. All rights reserved.