01: /*
02: * $Id: IInitializer.java 4597 2006-02-21 22:08:11 +0000 (Tue, 21 Feb 2006)
03: * jdonnerstag $ $Revision: 460927 $ $Date: 2006-02-21 22:08:11 +0000 (Tue, 21 Feb
04: * 2006) $
05: *
06: * ==============================================================================
07: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
08: * use this file except in compliance with the License. You may obtain a copy of
09: * the License at
10: *
11: * http://www.apache.org/licenses/LICENSE-2.0
12: *
13: * Unless required by applicable law or agreed to in writing, software
14: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16: * License for the specific language governing permissions and limitations under
17: * the License.
18: */
19: package wicket;
20:
21: /**
22: * Optional interface for {@link IInitializer initializers} that can clean up
23: * stuff initializers created. Initializers simple have to implement this
24: * interface and do their thing in {@link #destroy(Application)}.
25: * <p>
26: * Destroyers can be used to cleanup code when the application unloads. It only
27: * guarantees a best effort of cleaning up. Typically, for web applications,
28: * this is called when the Wicket servlet/ filter is unloaded by the container,
29: * which may depend on the container's implementation and things like the time
30: * out period it uses and whether all threads of the web app were cleared.
31: * </p>
32: *
33: * @author Eelco Hillenius
34: */
35: public interface IDestroyer {
36: /**
37: * @param application
38: * The application loading the component
39: */
40: void destroy(Application application);
41: }
|