org.cruxframework.crux.core.rebind.ioc
Class RuntimeContainerProxyCreator

java.lang.Object
  extended by org.cruxframework.crux.core.rebind.AbstractProxyCreator
      extended by org.cruxframework.crux.core.rebind.ioc.IocContainerRebind
          extended by org.cruxframework.crux.core.rebind.ioc.RuntimeContainerProxyCreator

public class RuntimeContainerProxyCreator
extends IocContainerRebind

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
 
Fields inherited from class org.cruxframework.crux.core.rebind.ioc.IocContainerRebind
configurations, device, remoteServiceType, view, viewBindableType
 
Fields inherited from class org.cruxframework.crux.core.rebind.AbstractProxyCreator
cacheable, cacheableVersionFound, context, logger
 
Constructor Summary
RuntimeContainerProxyCreator(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext ctx, com.google.gwt.core.ext.typeinfo.JClassType baseIntf)
           
 
Method Summary
protected  void generateGetMethod(AbstractProxyCreator.SourcePrinter srcWriter)
           
protected  void generateGetScopedMethod(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 generateProxyFields(AbstractProxyCreator.SourcePrinter srcWriter)
          Generate any fields required by the proxy.
protected  void generateProxyMethods(AbstractProxyCreator.SourcePrinter srcWriter)
           
protected  String[] getImports()
           
protected  AbstractProxyCreator.SourcePrinter getSourcePrinter()
           
 
Methods inherited from class org.cruxframework.crux.core.rebind.ioc.IocContainerRebind
getProxyQualifiedName, getProxySimpleName, injectFieldsAndMethods
 
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
 

Constructor Detail

RuntimeContainerProxyCreator

public RuntimeContainerProxyCreator(com.google.gwt.core.ext.TreeLogger logger,
                                    com.google.gwt.core.ext.GeneratorContext ctx,
                                    com.google.gwt.core.ext.typeinfo.JClassType baseIntf)
Method Detail

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

generateProxyContructor

protected void generateProxyContructor(AbstractProxyCreator.SourcePrinter srcWriter)
                                throws CruxGeneratorException
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 IocContainerRebind
Throws:
CruxGeneratorException

generateProxyMethods

protected void generateProxyMethods(AbstractProxyCreator.SourcePrinter srcWriter)
                             throws CruxGeneratorException
Overrides:
generateProxyMethods in class IocContainerRebind
Throws:
CruxGeneratorException

generateGetMethod

protected void generateGetMethod(AbstractProxyCreator.SourcePrinter srcWriter)

generateGetScopedMethod

protected void generateGetScopedMethod(AbstractProxyCreator.SourcePrinter srcWriter)

getImports

protected String[] getImports()
Overrides:
getImports in class IocContainerRebind
Returns:

getSourcePrinter

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


Copyright © 2014. All rights reserved.