1 package org.apache.stratum.lifecycle;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 /***
21 * The Disposable interface is used when components need to deallocate and dispose resources prior to their destruction.
22 *
23 * @author <a href="mailto:fede@apache.org">Federico Barbieri</a>
24 * @author <a href="mailto:pier@apache.org">Pierpaolo Fumagalli</a>
25 * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
26 * @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
27 * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
28 */
29 public interface Disposable
30 {
31 /***
32 * The dispose operation is called at the end of a components lifecycle. This method will be called after Startable.stop()
33 * method (if implemented by component). Components use this method to release and destroy any resources that the Component
34 * owns.
35 */
36 void dispose();
37 }