com.getsnappy.w20
Class StaticContext

java.lang.Object
  extended by com.getsnappy.w20.Context
      extended by com.getsnappy.w20.StaticContext

public abstract class StaticContext
extends Context

FIXME: add comments!

Author:
brian

Field Summary
 
Fields inherited from class com.getsnappy.w20.Context
subContexts
 
Constructor Summary
StaticContext(java.lang.String className, java.lang.String contextId, JavaScriptLoadingIndicator indicator)
          Create a new static context.
 
Method Summary
 java.lang.String getClassName()
           
 java.lang.String getContextId()
           
protected  JavaScriptLoadingIndicator getJavaScriptLoadingIndicator()
           
 void jsDeclareObject(java.io.Writer out)
          Generate a JavaScript function that returns a JavaScript object representing this context.
 
Methods inherited from class com.getsnappy.w20.Context
include, includeAsync, jsReload, output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticContext

public StaticContext(java.lang.String className,
                     java.lang.String contextId,
                     JavaScriptLoadingIndicator indicator)
Create a new static context. Static Contexts are contexts that will call the one and only one ApplicationInstance.

Parameters:
className -
contextId -
indicator - TODO
queryString -
Method Detail

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in class Context

getContextId

public java.lang.String getContextId()
Specified by:
getContextId in class Context

jsDeclareObject

public void jsDeclareObject(java.io.Writer out)
                     throws java.io.IOException
Description copied from class: Context
Generate a JavaScript function that returns a JavaScript object representing this context. This must be declared prior to creating the Web20Environment. NOTE: like an other js function, this one outputs straight JavaScript and should be nested inside a SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD