01: /*
02: * Copyright (c) 2002-2007 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.dispatcher;
06:
07: /**
08: * <!-- START SNIPPET: javadoc_snippet -->
09: *
10: * An interface to be implemented if require to get informed when WebWork
11: * shuts down, It's being hooked up through {@link FilterDispatcher#destroy()}
12: * -> {@link DispatcherUtils#cleanup()} methods calls.
13: * <p/>
14: * It can be configured through <code>webwork.properties</code> that
15: * resides in the classpath, typically in <code>/WEB-INF/classes</code> directory
16: * through the following entry
17: * <p/>
18: *
19: * <pre>
20: * webwork.dispatcher.shutDownListener=foo.bar.ShutdownListener1, foo.bar.ShutdownListener2
21: * </pre>
22: *
23: * The value of the properties is the FQN (Fully Quantified class name of the shut down listeners)
24: * It must implements this interface, else a ClassCastException will be registered in the log.
25: * Multiple class names could be specified, but they must be comma separated.
26: *
27: * <!-- END SNIPPET: javadoc_snippet -->
28: *
29: * @author tmjee
30: * @version $Date$ $Id$
31: */
32: // START SNIPPET: code
33: public interface ShutDownListener {
34: void shutdown();
35: }
36: // END SNIPPET: code
|