org.cruxframework.crux.core.server
Class CruxBridge

java.lang.Object
  extended by org.cruxframework.crux.core.server.CruxBridge

public class CruxBridge
extends Object

A Bridge class for allow Generators to know the name of the module that starts the generation process. Crux Generators need this information to obtain better performance for method handlers in client side of applications.

When GWT generators and the application server run in different JVMs, the only way to obtain these informations is using a bridge.

Author:
Thiago da Rosa de Bustamante

Method Summary
static CruxBridge getInstance()
          Singleton method
 String getLastPageRequested()
          Return the last page requested by client.
 String getOutputCharset()
          Return the last page requested by client.
 String getWebinfClasses()
          Return the web-inf/classes URL .
 String getWebinfLib()
          Return the web-inf/lib URL.
 boolean isSingleVM()
           
 void registerLastPageRequested(String lastPage)
          Inform the name of the last page the client requested.
 void registerPageOutputCharset(String charset)
           
 void registerWebinfClasses(String webinfClasses)
           
 void registerWebinfLib(String webinfLib)
           
static void removeOldCompilationFiles()
           
 void setSingleVM(boolean singleVM)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

removeOldCompilationFiles

public static void removeOldCompilationFiles()

getInstance

public static CruxBridge getInstance()
Singleton method

Returns:

getLastPageRequested

public String getLastPageRequested()
Return the last page requested by client.

Returns:

getOutputCharset

public String getOutputCharset()
Return the last page requested by client.

Returns:

getWebinfClasses

public String getWebinfClasses()
Return the web-inf/classes URL .

Returns:

getWebinfLib

public String getWebinfLib()
Return the web-inf/lib URL.

Returns:

isSingleVM

public boolean isSingleVM()
Returns:

registerPageOutputCharset

public void registerPageOutputCharset(String charset)

registerLastPageRequested

public void registerLastPageRequested(String lastPage)
Inform the name of the last page the client requested. This is used only in hosted mode of GWT, when we will have only the developer working on a page.


registerWebinfClasses

public void registerWebinfClasses(String webinfClasses)
Parameters:
webinfClasses -

registerWebinfLib

public void registerWebinfLib(String webinfLib)
Parameters:
webinfLib -

setSingleVM

public void setSingleVM(boolean singleVM)
Parameters:
singleVM -


Copyright © 2014. All rights reserved.