KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > picocontainer > LifecycleManager


1 /*****************************************************************************
2  * Copyright (C) PicoContainer Organization. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  * *
8  * Original code by Paul Hammant *
9  *****************************************************************************/

10
11 package org.picocontainer;
12
13 /**
14  * @author Paul Hammant
15  * @version $Revision: 1841 $
16  */

17 public interface LifecycleManager {
18
19     /**
20      * Invoke the "start" method on the container's components and child components.
21      * It is up to the implementor to define exactly what a component's "start" method is.
22      *
23      * @param node The node to start the traversal.
24      */

25     void start(PicoContainer node);
26
27     /**
28      * Invoke the "stop" method on the container's components and child components.
29      * It is up to the implementor to define exactly what a component's "stop" method is.
30      *
31      * @param node The node to start the traversal.
32      */

33     void stop(PicoContainer node);
34
35     /**
36      * Invoke the "dispose" method on the container's components and child components.
37      * It is up to the implementor to define exactly what a component's "dispose" method is.
38      *
39      * @param node The node to start the traversal.
40      */

41     void dispose(PicoContainer node);
42 }
43
Popular Tags