org.ztemplates.web.application
Class ZApplicationContextWebImpl

java.lang.Object
  extended by org.ztemplates.web.application.ZApplicationContextWebImpl
All Implemented Interfaces:
ZIActionApplicationContext, ZIRenderApplicationContext

public class ZApplicationContextWebImpl
extends Object
implements ZIRenderApplicationContext, ZIActionApplicationContext


Constructor Summary
ZApplicationContextWebImpl(org.zclasspath.ZIClassRepository classRepository, javax.servlet.ServletContext servletContext, String encoding)
           
 
Method Summary
 Object getAttribute(String name)
           
 org.zclasspath.ZIClassRepository getClassRepository()
           
 String getContextPath()
           
 String getEncoding()
           
 String getInitParameter(String name)
           
 Enumeration<String> getInitParameterNames()
           
 InputStream getResourceAsStream(String path)
           
 boolean isDevMode()
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 void setDevMode(boolean devMode)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZApplicationContextWebImpl

public ZApplicationContextWebImpl(org.zclasspath.ZIClassRepository classRepository,
                                  javax.servlet.ServletContext servletContext,
                                  String encoding)
                           throws Exception
Throws:
Exception
Method Detail

getResourceAsStream

public InputStream getResourceAsStream(String path)
Specified by:
getResourceAsStream in interface ZIRenderApplicationContext

getInitParameter

public String getInitParameter(String name)
Specified by:
getInitParameter in interface ZIActionApplicationContext
Specified by:
getInitParameter in interface ZIRenderApplicationContext

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in interface ZIActionApplicationContext
Specified by:
getAttribute in interface ZIRenderApplicationContext

removeAttribute

public void removeAttribute(String name)
Specified by:
removeAttribute in interface ZIActionApplicationContext
Specified by:
removeAttribute in interface ZIRenderApplicationContext

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in interface ZIActionApplicationContext
Specified by:
setAttribute in interface ZIRenderApplicationContext

getInitParameterNames

public Enumeration<String> getInitParameterNames()
Specified by:
getInitParameterNames in interface ZIActionApplicationContext
Specified by:
getInitParameterNames in interface ZIRenderApplicationContext

getClassRepository

public org.zclasspath.ZIClassRepository getClassRepository()

getEncoding

public String getEncoding()
Specified by:
getEncoding in interface ZIActionApplicationContext
Specified by:
getEncoding in interface ZIRenderApplicationContext

getContextPath

public String getContextPath()
Specified by:
getContextPath in interface ZIActionApplicationContext

isDevMode

public boolean isDevMode()
Specified by:
isDevMode in interface ZIRenderApplicationContext

setDevMode

public void setDevMode(boolean devMode)
Specified by:
setDevMode in interface ZIRenderApplicationContext


Copyright © 2011. All Rights Reserved.