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

java.lang.Object
  extended by org.cruxframework.crux.core.rebind.AbstractProxyCreator
      extended by org.cruxframework.crux.core.rebind.ioc.IocContainerRebind
Direct Known Subclasses:
RuntimeContainerProxyCreator

public class IocContainerRebind
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
protected  Map<String,IocConfig<?>> configurations
           
protected  DeviceAdaptive.Device device
           
protected  com.google.gwt.core.ext.typeinfo.JClassType remoteServiceType
           
protected  View view
           
protected  com.google.gwt.core.ext.typeinfo.JClassType viewBindableType
           
 
Fields inherited from class org.cruxframework.crux.core.rebind.AbstractProxyCreator
cacheable, cacheableVersionFound, context, logger
 
Constructor Summary
IocContainerRebind(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context, View view, String device)
           
 
Method Summary
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 generateProxyMethods(AbstractProxyCreator.SourcePrinter srcWriter)
           
protected  String[] getImports()
           
 String getProxyQualifiedName()
           
 String getProxySimpleName()
           
protected  AbstractProxyCreator.SourcePrinter getSourcePrinter()
           
static void injectFieldsAndMethods(AbstractProxyCreator.SourcePrinter srcWriter, com.google.gwt.core.ext.typeinfo.JClassType type, String parentVariable, String iocContainerVariable, View view, DeviceAdaptive.Device device)
           
 
Methods inherited from class org.cruxframework.crux.core.rebind.AbstractProxyCreator
cacheableVersionFound, create, findCacheableImplementationAndMarkForReuseIfAvailable, findCacheableImplementationAndMarkForReuseIfAvailable, generateLoggerField, generateMethodParameters, generateMethodTrhowsClause, generateProxyFields, 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

view

protected final View view

configurations

protected Map<String,IocConfig<?>> configurations

viewBindableType

protected com.google.gwt.core.ext.typeinfo.JClassType viewBindableType

remoteServiceType

protected com.google.gwt.core.ext.typeinfo.JClassType remoteServiceType

device

protected DeviceAdaptive.Device device
Constructor Detail

IocContainerRebind

public IocContainerRebind(com.google.gwt.core.ext.TreeLogger logger,
                          com.google.gwt.core.ext.GeneratorContext context,
                          View view,
                          String device)
Method Detail

generateProxyMethods

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

injectFieldsAndMethods

public static void injectFieldsAndMethods(AbstractProxyCreator.SourcePrinter srcWriter,
                                          com.google.gwt.core.ext.typeinfo.JClassType type,
                                          String parentVariable,
                                          String iocContainerVariable,
                                          View view,
                                          DeviceAdaptive.Device device)
Parameters:
srcWriter -
type -
parentVariable -
iocContainerVariable -
view -
device -

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

getImports

protected String[] getImports()
Returns:


Copyright © 2014. All rights reserved.