1 |
ajm |
1.2 |
//---PACKAGE DECLARATION--- |
2 |
tdb |
1.5 |
package uk.org.iscream.componentmanager; |
3 |
ajm |
1.2 |
|
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 |
tdb |
1.4 |
* @author $Author: tdb1 $ |
12 |
tdb |
1.5 |
* @version $Id: Component.java,v 1.4 2001/03/14 01:34:25 tdb1 Exp $ |
13 |
ajm |
1.2 |
*/ |
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 |
tdb |
1.4 |
|
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 |
ajm |
1.2 |
|
38 |
|
|
//---PRIVATE METHODS--- |
39 |
|
|
|
40 |
|
|
//---ACCESSOR/MUTATOR METHODS--- |
41 |
|
|
|
42 |
|
|
//---ATTRIBUTES--- |
43 |
|
|
|
44 |
|
|
//---STATIC ATTRIBUTES--- |
45 |
|
|
|
46 |
|
|
} |
47 |
|
|
|