01: /**
02: * Copyright (C) 2006, 2007 David Bulmore, Software Sensation Inc.
03: * All Rights Reserved.
04: *
05: * This file is part of jWebApp.
06: *
07: * jWebApp is free software; you can redistribute it and/or modify it under
08: * the terms of the GNU General Public License (Version 2) as published by
09: * the Free Software Foundation.
10: *
11: * jWebApp is distributed in the hope that it will be useful, but WITHOUT
12: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14: * for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with jWebApp; if not, write to the Free Software Foundation,
18: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19: */package jwebapp.controller;
20:
21: import javax.servlet.ServletContext;
22:
23: /**
24: * The InitDestroyHandler is used to handle servlet startup and shutdown events and can be used for any purpose.
25: */
26: public class InitDestroyHandler implements InitDestroy {
27: /**
28: * Handle servlet startup event. If your application requires any setup prior to fulfilling requests, this is the place to do it.
29: * @param context an instance of ServletContext
30: */
31: public void init(ServletContext context) throws Exception {
32: }
33:
34: /**
35: * Handle servlet shutdown event. If your application requires any processing prior to shutting down, this is the place to do it.
36: * @param context an instance of ServletContext
37: */
38: public void destroy(ServletContext context) throws Exception {
39: }
40: }
|