org.ztemplates.render.impl
Class ZWebRenderContextImpl

java.lang.Object
  extended by org.ztemplates.render.impl.ZWebRenderContextImpl
All Implemented Interfaces:
ZIExposedMethodRepository, ZIRenderContext, ZIRenderEngineListener, ZIRendererRepository, ZIWebRenderContext

public class ZWebRenderContextImpl
extends Object
implements ZIWebRenderContext


Constructor Summary
ZWebRenderContextImpl(ZRenderApplication application, String contextPath, ZIJavaScriptProcessor javaScriptProcessor, ZICssProcessor cssProcessor)
           
 
Method Summary
 void beforeRender(Object obj, Map<String,Object> exposed)
           
 ZRenderApplication getApplication()
           
 String getContextPath()
           
 List<List<String>> getCssExposed()
           
 ZICssIdRepository getCssIdRepository()
           
 List<ZIExposedValue> getExposedValues(Class clazz)
           
 List<List<String>> getJavaScriptExposed()
           
 int getRenderCallCounter()
           
 ZIRenderer getRenderer(Class<? extends ZIRenderer> clazz)
           
 String getScriptExposedBy()
           
 void incRenderCallCounter()
           
 boolean isDebugRenderComments()
           
 void registerScripts(Object obj, Map<String,Object> exposed)
           
 void setScriptExposedBy(String scriptExposedBy)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZWebRenderContextImpl

public ZWebRenderContextImpl(ZRenderApplication application,
                             String contextPath,
                             ZIJavaScriptProcessor javaScriptProcessor,
                             ZICssProcessor cssProcessor)
Method Detail

getExposedValues

public List<ZIExposedValue> getExposedValues(Class clazz)
                                      throws Exception
Specified by:
getExposedValues in interface ZIExposedMethodRepository
Throws:
Exception

getRenderCallCounter

public int getRenderCallCounter()
Specified by:
getRenderCallCounter in interface ZIWebRenderContext

incRenderCallCounter

public void incRenderCallCounter()

getCssIdRepository

public ZICssIdRepository getCssIdRepository()

getRenderer

public ZIRenderer getRenderer(Class<? extends ZIRenderer> clazz)
                       throws Exception
Specified by:
getRenderer in interface ZIRendererRepository
Throws:
Exception

getApplication

public ZRenderApplication getApplication()

getContextPath

public String getContextPath()

getScriptExposedBy

public String getScriptExposedBy()

setScriptExposedBy

public void setScriptExposedBy(String scriptExposedBy)

registerScripts

public void registerScripts(Object obj,
                            Map<String,Object> exposed)
                     throws Exception
Throws:
Exception

getJavaScriptExposed

public List<List<String>> getJavaScriptExposed()
Specified by:
getJavaScriptExposed in interface ZIWebRenderContext

getCssExposed

public List<List<String>> getCssExposed()
Specified by:
getCssExposed in interface ZIWebRenderContext

beforeRender

public void beforeRender(Object obj,
                         Map<String,Object> exposed)
                  throws Exception
Specified by:
beforeRender in interface ZIRenderEngineListener
Throws:
Exception

isDebugRenderComments

public boolean isDebugRenderComments()
Specified by:
isDebugRenderComments in interface ZIRenderContext


Copyright © 2011. All Rights Reserved.