org.cruxframework.crux.core.rebind.controller
Class ControllerProxyCreator

java.lang.Object
  extended by org.cruxframework.crux.core.rebind.AbstractProxyCreator
      extended by org.cruxframework.crux.core.rebind.controller.ControllerProxyCreator

public class ControllerProxyCreator
extends AbstractProxyCreator

Author:
Thiago da Rosa de Bustamante

Nested Class Summary
 
Nested classes/interfaces inherited from class org.cruxframework.crux.core.rebind.AbstractProxyCreator
AbstractProxyCreator.SourcePrinter
 
Field Summary
static String CONTROLLER_PROXY_SUFFIX
           
static String EXPOSED_METHOD_SUFFIX
           
 
Fields inherited from class org.cruxframework.crux.core.rebind.AbstractProxyCreator
cacheable, cacheableVersionFound, context, logger
 
Constructor Summary
ControllerProxyCreator(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context, com.google.gwt.core.ext.typeinfo.JClassType controllerClass)
          Constructor
 
Method Summary
protected  void generateGetViewMethod(AbstractProxyCreator.SourcePrinter srcWriter)
           
protected  void generateProxyContructor(AbstractProxyCreator.SourcePrinter srcWriter)
          Generate the proxy constructor and delegate to the superclass constructor using the default address for the RemoteService.
protected  void generateProxyExposedMethodSignature(AbstractProxyCreator.SourcePrinter w, com.google.gwt.dev.generator.NameFactory nameFactory, com.google.gwt.core.ext.typeinfo.JMethod method)
          Generates the signature for the exposed method
protected  void generateProxyFields(AbstractProxyCreator.SourcePrinter srcWriter)
          Generate any fields required by the proxy.
protected  void generateProxyMethods(AbstractProxyCreator.SourcePrinter srcWriter)
           
protected  String[] getImports()
           
 String getProxyQualifiedName()
           
 String getProxySimpleName()
           
protected  AbstractProxyCreator.SourcePrinter getSourcePrinter()
           
 
Methods inherited from class org.cruxframework.crux.core.rebind.AbstractProxyCreator
cacheableVersionFound, create, findCacheableImplementationAndMarkForReuseIfAvailable, findCacheableImplementationAndMarkForReuseIfAvailable, generateLoggerField, generateMethodParameters, generateMethodTrhowsClause, generateProxyWrapperMethodDeclaration, generateSubTypes, getJsniSimpleSignature, isAlreadyGenerated, isCacheable, isCrux2OldInterfacesCompatibilityEnabled, logDebugMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTROLLER_PROXY_SUFFIX

public static final String CONTROLLER_PROXY_SUFFIX
See Also:
Constant Field Values

EXPOSED_METHOD_SUFFIX

public static final String EXPOSED_METHOD_SUFFIX
See Also:
Constant Field Values
Constructor Detail

ControllerProxyCreator

public ControllerProxyCreator(com.google.gwt.core.ext.TreeLogger logger,
                              com.google.gwt.core.ext.GeneratorContext context,
                              com.google.gwt.core.ext.typeinfo.JClassType controllerClass)
Constructor

Parameters:
logger -
context -
crossDocumentIntf -
Method Detail

generateProxyContructor

protected void generateProxyContructor(AbstractProxyCreator.SourcePrinter srcWriter)
Description copied from class: AbstractProxyCreator
Generate the proxy constructor and delegate to the superclass constructor using the default address for the RemoteService.

Overrides:
generateProxyContructor in class AbstractProxyCreator
See Also:
org.cruxframework.crux.core.rebind.AbstractProxyCreator#generateProxyContructor(com.google.gwt.user.rebind.SourcePrinter)

generateProxyFields

protected void generateProxyFields(AbstractProxyCreator.SourcePrinter srcWriter)
                            throws CruxGeneratorException
Description copied from class: AbstractProxyCreator
Generate any fields required by the proxy.

Overrides:
generateProxyFields in class AbstractProxyCreator
Throws:
CruxGeneratorException
See Also:
org.cruxframework.crux.core.rebind.AbstractProxyCreator#generateProxyFields(com.google.gwt.user.rebind.SourcePrinter)

generateProxyMethods

protected void generateProxyMethods(AbstractProxyCreator.SourcePrinter srcWriter)
Overrides:
generateProxyMethods in class AbstractProxyCreator

generateGetViewMethod

protected void generateGetViewMethod(AbstractProxyCreator.SourcePrinter srcWriter)
Parameters:
srcWriter -

getImports

protected String[] getImports()
Returns:

getProxyQualifiedName

public String getProxyQualifiedName()
Specified by:
getProxyQualifiedName in class AbstractProxyCreator
Returns:
the full qualified name of the proxy object.

getProxySimpleName

public String getProxySimpleName()
Specified by:
getProxySimpleName in class AbstractProxyCreator
Returns:
the simple name of the proxy object.

getSourcePrinter

protected AbstractProxyCreator.SourcePrinter getSourcePrinter()
Specified by:
getSourcePrinter in class AbstractProxyCreator
Returns:
a sourceWriter for the proxy class

generateProxyExposedMethodSignature

protected void generateProxyExposedMethodSignature(AbstractProxyCreator.SourcePrinter w,
                                                   com.google.gwt.dev.generator.NameFactory nameFactory,
                                                   com.google.gwt.core.ext.typeinfo.JMethod method)
Generates the signature for the exposed method

Parameters:
w -
nameFactory -
method -


Copyright © 2014. All rights reserved.