|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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>
| 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 |
public void startup(ServletContext app)
throws ServletException
app - The ServletContext, ie the application, you
are starting up.
ServletException - if something goes wrong.public void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||