com.caucho.jsp
Class JspPrecompileListener

java.lang.Object
  extended by com.caucho.jsp.JspPrecompileResource
      extended by com.caucho.jsp.JspPrecompileListener
All Implemented Interfaces:
java.util.EventListener, ServletContextListener
Direct Known Subclasses:
JspPrecompileListener

public class JspPrecompileListener
extends JspPrecompileResource
implements ServletContextListener

Precompiles jsp files.


Constructor Summary
JspPrecompileListener()
           
 
Method Summary
 void addExtension(java.lang.String extension)
          Adds a new extension to precompile.
 void contextDestroyed(ServletContextEvent event)
          Callback when a ServletContext is destroyed
 void contextInitialized(ServletContextEvent event)
          Callback when a ServletContext is initialized
 void setTimeout(Period timeout)
          Set the time to wait for compilation to complete
 
Methods inherited from class com.caucho.jsp.JspPrecompileResource
createFileset, createFileSet, init, setThreadCount, setTimeoutMs, setWebApp, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JspPrecompileListener

public JspPrecompileListener()
Method Detail

addExtension

public void addExtension(java.lang.String extension)
                  throws ConfigException
Adds a new extension to precompile.

Throws:
ConfigException

setTimeout

public void setTimeout(Period timeout)
Set the time to wait for compilation to complete


contextInitialized

public void contextInitialized(ServletContextEvent event)
Description copied from interface: ServletContextListener
Callback when a ServletContext is initialized

Specified by:
contextInitialized in interface ServletContextListener
Parameters:
event - the event for the context initialization

contextDestroyed

public void contextDestroyed(ServletContextEvent event)
Description copied from interface: ServletContextListener
Callback when a ServletContext is destroyed

Specified by:
contextDestroyed in interface ServletContextListener
Parameters:
event - the event for the context destruction