org.davesag.generica
Interface WebApp


public interface WebApp

This is where you initialise and finalise your application wide data, and parse any config params out of the web.xml file. Each Web Application you develop should implement the WebApp interface to provide specific startup and shutdown logic. *

The HibernatePlugIn uses the WebApp.Factory to return a WebApp of a given name and will call the relevent methods in your WebApp implementation if you place the following into your struts-config.xml file.

          <plugin
                  class="org.davesag.generica.servlet.plugin.HibernatePlugIn">
                  <set-property property="webapp" value="your.webappImpl"/>
          </plugin>
 

Since:
Generica 1.0
Version:
CVS Revision $Id: WebApp.java,v 1.6 2004/03/30 10:12:55 norm Exp $
Author:
Dave Sag http://www.davesag.com

Nested Class Summary
static class WebApp.Factory
          Inner Factory class that loads a named WebApp.
 
Method Summary
 void shutdown()
          Cleanly shut down the Web Application.
 void startup(ServletContext app)
          Initialise any application wide settings.
 

Method Detail

startup

public void startup(ServletContext app)
             throws ServletException
Initialise any application wide settings.

Parameters:
app - The ServletContext, ie the application, you are starting up.
Throws:
ServletException - if something goes wrong.

shutdown

public void shutdown()
Cleanly shut down the Web Application.



Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.