org.cruxframework.crux.core.rebind.ioc
Class IocContainerRebind
java.lang.Object
org.cruxframework.crux.core.rebind.AbstractProxyCreator
org.cruxframework.crux.core.rebind.ioc.IocContainerRebind
- Direct Known Subclasses:
- RuntimeContainerProxyCreator
public class IocContainerRebind
- extends AbstractProxyCreator
- Author:
- Thiago da Rosa de Bustamante
|
Constructor Summary |
IocContainerRebind(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context,
View view,
String 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 |
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
IocContainerRebind
public IocContainerRebind(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context,
View view,
String device)
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.