1 |
//---PACKAGE DECLARATION--- |
2 |
package uk.org.iscream.cms.server.componentmanager; |
3 |
|
4 |
//---IMPORTS--- |
5 |
|
6 |
/** |
7 |
* This interface should be implemented by any independent |
8 |
* components of the system. It presents a management |
9 |
* interface for all i-scream components. |
10 |
* |
11 |
* @author $Author: tdb1 $ |
12 |
* @version $Id: Component.java,v 1.5 2001/03/14 23:25:29 tdb1 Exp $ |
13 |
*/ |
14 |
public interface Component { |
15 |
|
16 |
//---FINAL ATTRIBUTES--- |
17 |
|
18 |
//---STATIC METHODS--- |
19 |
|
20 |
//---CONSTRUCTORS--- |
21 |
|
22 |
//---PUBLIC METHODS--- |
23 |
|
24 |
/** |
25 |
* This method starts the implementing component |
26 |
*/ |
27 |
public void start() throws ComponentStartException; |
28 |
|
29 |
/** |
30 |
* Does a dependency check. Used mainly at startup to |
31 |
* see if the required dependencies (components) are up |
32 |
* and running. |
33 |
* |
34 |
* @return a boolean value, true if the depdencies are satisfied |
35 |
*/ |
36 |
public boolean depCheck(); |
37 |
|
38 |
//---PRIVATE METHODS--- |
39 |
|
40 |
//---ACCESSOR/MUTATOR METHODS--- |
41 |
|
42 |
//---ATTRIBUTES--- |
43 |
|
44 |
//---STATIC ATTRIBUTES--- |
45 |
|
46 |
} |
47 |
|